mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix: Stop telemetry events to Posthog (#16788)
This commit is contained in:
@@ -242,14 +242,10 @@ export const useBuilderStore = defineStore(STORES.BUILDER, () => {
|
||||
function onEachStreamingMessage(response: ChatRequest.ResponsePayload, id: string) {
|
||||
if (response.sessionId && !currentSessionId.value) {
|
||||
currentSessionId.value = response.sessionId;
|
||||
telemetry.track(
|
||||
'Assistant session started',
|
||||
{
|
||||
chat_session_id: currentSessionId.value,
|
||||
task: 'workflow-generation',
|
||||
},
|
||||
{ withPostHog: true },
|
||||
);
|
||||
telemetry.track('Assistant session started', {
|
||||
chat_session_id: currentSessionId.value,
|
||||
task: 'workflow-generation',
|
||||
});
|
||||
} else if (currentSessionId.value !== response.sessionId) {
|
||||
// Ignore messages from other sessions
|
||||
return;
|
||||
@@ -263,14 +259,10 @@ export const useBuilderStore = defineStore(STORES.BUILDER, () => {
|
||||
|
||||
// Core API functions
|
||||
async function initBuilderChat(userMessage: string, source: 'chat' | 'canvas') {
|
||||
telemetry.track(
|
||||
'User submitted workflow prompt',
|
||||
{
|
||||
source,
|
||||
prompt: userMessage,
|
||||
},
|
||||
{ withPostHog: true },
|
||||
);
|
||||
telemetry.track('User submitted workflow prompt', {
|
||||
source,
|
||||
prompt: userMessage,
|
||||
});
|
||||
resetBuilderChat();
|
||||
const id = getRandomId();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user