-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature: Settings to enable telemetry for extension #55
Conversation
af561f3
to
026b3b1
Compare
🚂 Release 1.2.2
…into feature/disable-telemetry
…e-pullflow into srzainab/issue56
src/utils/trace.ts
Outdated
type FakeBasicTracerProvider = {} | ||
type FakeAttribute = {} | ||
|
||
// Null Object Design pattern |
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.
do we need this comment here?
src/utils/trace.ts
Outdated
|
||
dispose(): void {} | ||
start({ name, attributes }: { name: string; attributes?: TraceAttributes }) { | ||
console.log({ name, attributes }) |
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.
why are we doing console log here?
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.
because i need to use the attributes and name somehow otherwise it gives unused values errors.
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 do it like one of these ways:
start({ _name, _attributes }: { name: string; attributes?: TraceAttributes }) { ... }
start({ }: { name: string; attributes?: TraceAttributes }) { ... }
what do you think @srzainab?
…e-pullflow into feature/disable-telemetry
Co-authored-by: Amna Anwar <[email protected]>
Add settings for disabling flow
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.
left a comment regarding the unused values error, looks good otherwise
src/utils/trace.ts
Outdated
|
||
dispose(): void {} | ||
start({ name, attributes }: { name: string; attributes?: TraceAttributes }) { | ||
console.log({ name, attributes }) |
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 do it like one of these ways:
start({ _name, _attributes }: { name: string; attributes?: TraceAttributes }) { ... }
start({ }: { name: string; attributes?: TraceAttributes }) { ... }
what do you think @srzainab?
…e-pullflow into feature/disable-telemetry
@amna-pullflow updated the PR. will merge once the tests pass. |
Summary of Changes
package.json
initialize.ts
isTelemetryEnabled
flag inCacheObject
Snap-Shots
PR-Specific-Tests