-
Notifications
You must be signed in to change notification settings - Fork 490
feat(telemetry): help center and workflow creation #6505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
0099512
59e1742
4e48f45
1a032d2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,9 @@ import type { | |
| ExecutionContext, | ||
| ExecutionErrorMetadata, | ||
| ExecutionSuccessMetadata, | ||
| HelpCenterClosedMetadata, | ||
| HelpCenterOpenedMetadata, | ||
| HelpResourceClickedMetadata, | ||
| NodeSearchMetadata, | ||
| NodeSearchResultMetadata, | ||
| PageVisibilityMetadata, | ||
|
|
@@ -28,6 +31,7 @@ import type { | |
| TemplateLibraryMetadata, | ||
| TemplateLibraryClosedMetadata, | ||
| TemplateMetadata, | ||
| WorkflowCreatedMetadata, | ||
| WorkflowImportMetadata | ||
| } from '../../types' | ||
| import { TelemetryEvents } from '../../types' | ||
|
|
@@ -277,6 +281,22 @@ export class MixpanelTelemetryProvider implements TelemetryProvider { | |
| this.trackEvent(TelemetryEvents.TEMPLATE_FILTER_CHANGED, metadata) | ||
| } | ||
|
|
||
| trackHelpCenterOpened(metadata: HelpCenterOpenedMetadata): void { | ||
| this.trackEvent(TelemetryEvents.HELP_CENTER_OPENED, metadata) | ||
| } | ||
|
|
||
| trackHelpResourceClicked(metadata: HelpResourceClickedMetadata): void { | ||
| this.trackEvent(TelemetryEvents.HELP_RESOURCE_CLICKED, metadata) | ||
| } | ||
|
|
||
| trackHelpCenterClosed(metadata: HelpCenterClosedMetadata): void { | ||
| this.trackEvent(TelemetryEvents.HELP_CENTER_CLOSED, metadata) | ||
| } | ||
|
|
||
| trackWorkflowCreated(metadata: WorkflowCreatedMetadata): void { | ||
| this.trackEvent(TelemetryEvents.WORKFLOW_CREATED, metadata) | ||
| } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [performance] medium Priority Issue: Complex execution context calculation runs on every telemetry call |
||
|
|
||
| trackWorkflowExecution(): void { | ||
| const context = this.getExecutionContext() | ||
| this.trackEvent(TelemetryEvents.EXECUTION_START, context) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[quality] medium Priority
Issue: Workflow creation tracking logic may not be accurate in all scenarios
Context: The check for previousWorkflowHadNodes might miss edge cases like workflows with only IO nodes or subgraphs, potentially providing misleading analytics data
Suggestion: Consider more robust workflow state detection, possibly checking for meaningful workflow content beyond just node count
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can improve this if we see these problems in the data.