Skip to content

Add support for opentelemetry to the SDK #412

@ankit8697

Description

@ankit8697

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

Is your feature request related to a problem? Please describe.
The previous SDK that Google provided for GenAI had built-in OpenTelemetry support. When we migrated to this SDK, that OpenTelemetry support disappeared. It would be great if this SDK had built-in OpenTelemetry support as well.

Describe the solution you'd like
I'd like the SDK to have built-in OpenTelemetry support, where it would automatically pick up on the OpenTelemetry setup in the project and push traces, logs, and metrics to the collector that has been configured for the project.

Describe alternatives you've considered
The alternatives are to add instrumentation manually which is time consuming and doesn't have everything I need, including errors from the Gemini API and details on why specific errors were receieved.

Metadata

Metadata

Labels

api:gemini-apiIssues related to Gemini APIpriority: p3Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions