mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 15:47:13 +01:00
update kafka messaging
This commit is contained in:
parent
9fea2fc77c
commit
46b4b98d40
6 changed files with 31 additions and 15 deletions
|
|
@ -6,7 +6,7 @@ import {
|
|||
runAnalyticsQuery,
|
||||
runQuery,
|
||||
} from 'lib/db';
|
||||
import { kafkaProducer, getDateFormatKafka } from 'lib/kafka';
|
||||
import { sendKafkaMessage, getDateFormatKafka } from 'lib/db/kafka';
|
||||
|
||||
export async function savePageView(...args) {
|
||||
return runAnalyticsQuery({
|
||||
|
|
@ -54,5 +54,5 @@ async function kafkaQuery(website_id, { session_uuid, url, referrer }) {
|
|||
referrer: referrer?.substr(0, URL_LENGTH),
|
||||
};
|
||||
|
||||
await kafkaProducer(params, 'pageview');
|
||||
await sendKafkaMessage(params, 'pageview');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue