-
Notifications
You must be signed in to change notification settings - Fork 2
Update telemetry systemCode #1190
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
base: main
Are you sure you want to change the base?
Changes from all commits
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 | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -147,9 +147,10 @@ export class TelemetryRecorder { | |||||||||||||||||||||||||||
| * per-namespace as our backend server validates that the events are | ||||||||||||||||||||||||||||
| * structured properly for both correctness and security purposes. | ||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||
| recordEvent<N extends Namespace>(namespace: N, details: NamespaceSchemas[N]) { | ||||||||||||||||||||||||||||
| recordEvent<N extends Namespace>(namespace: N, systemCode: string, details: NamespaceSchemas[N]) { | ||||||||||||||||||||||||||||
| const event: TelemetryEvent = { | ||||||||||||||||||||||||||||
| namespace: `dotcom-tool-kit.${namespace}`, | ||||||||||||||||||||||||||||
| systemCode, | ||||||||||||||||||||||||||||
| eventTimestamp: Date.now(), | ||||||||||||||||||||||||||||
| data: { ...this.attributes, ...details } | ||||||||||||||||||||||||||||
|
Comment on lines
+150
to
155
Contributor
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. suggestion: I think users that call the it will also resolve the breaking change Mx LLM is talking about which is a little bit of a concern even though no one has enabled the telemetry the function arguments are still processed and will cause a
Suggested change
|
||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
ivomurrell marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||
|
|
@@ -177,7 +178,7 @@ export class MockTelemetryClient extends TelemetryRecorder { | |||||||||||||||||||||||||||
| return this | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
| // eslint-disable-next-line @typescript-eslint/no-empty-function -- mocked function | ||||||||||||||||||||||||||||
| override recordEvent(_namespace: string, _details: NamespaceSchemas[Namespace]) {} | ||||||||||||||||||||||||||||
| override recordEvent(_namespace: string, _systemCode: string, _details: NamespaceSchemas[Namespace]) {} | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| export { TelemetryEvent } | ||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.