-
Notifications
You must be signed in to change notification settings - Fork 13
Integrate OpenTelemetry (OTel) support: 3. add telemetry support in the web server #13
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?
Conversation
kalenkevich
left a comment
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.
Thanks
| .addOption(VERBOSE_OPTION) | ||
| .addOption(LOG_LEVEL_OPTION) | ||
| .addOption(ARTIFACT_SERVICE_URI_OPTION) | ||
| .addOption(OTEL_TO_CLOUD_OPTION) |
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.
it is not used in the action. Please remove
dev/src/server/adk_web_server.ts
Outdated
| } | ||
|
|
||
| private async setupTelemetry(): Promise<void> { | ||
| this.memoryExporter = new InMemoryExporter(this.sessionTraceDict); |
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.
this could be moved to constructor
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.
Thanks for the suggestion!
dev/src/utils/telemetry_utils.ts
Outdated
| } | ||
| } | ||
|
|
||
| export async function setupGcpTelemetryExperimental( |
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.
does it requre to be public? can we keep this internal (remove export)?
dev/src/utils/telemetry_utils.ts
Outdated
| maybeSetOtelProviders(otelHooksToAdd, otelResource); | ||
| } | ||
|
|
||
| export async function setupTelemetryFromEnvExperimental( |
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.
same as above
dev/src/utils/telemetry_utils.ts
Outdated
| } | ||
| } | ||
|
|
||
| export function otelEnvVarsEnabled(): boolean { |
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 to export this?
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.
OK, I have removed it
…he web server Integrate OpenTelemetry (OTel) support: 3. add telemetry support in the web server - 2
ff8cab2 to
c638e7e
Compare
Integrate OpenTelemetry (OTel) support: 3. add telemetry support in the web server