Skip to content

Conversation

@mingjourney
Copy link
Collaborator

Integrate OpenTelemetry (OTel) support: 3. add telemetry support in the web server

Copy link
Collaborator

@kalenkevich kalenkevich left a 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)
Copy link
Collaborator

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

}

private async setupTelemetry(): Promise<void> {
this.memoryExporter = new InMemoryExporter(this.sessionTraceDict);
Copy link
Collaborator

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestion!

}
}

export async function setupGcpTelemetryExperimental(
Copy link
Collaborator

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)?

maybeSetOtelProviders(otelHooksToAdd, otelResource);
}

export async function setupTelemetryFromEnvExperimental(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

}
}

export function otelEnvVarsEnabled(): boolean {
Copy link
Collaborator

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?

Copy link
Collaborator Author

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
@mingjourney mingjourney force-pushed the feature/telemetry-web-server branch from ff8cab2 to c638e7e Compare November 25, 2025 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants