Skip to content

chore: remove unnecessary opentelemetry-sdk and exporter dependencies#406

Merged
Nelson-PROIA merged 1 commit intomainfrom
nelson.proia/remove-unnecessary-otel-deps
Mar 9, 2026
Merged

chore: remove unnecessary opentelemetry-sdk and exporter dependencies#406
Nelson-PROIA merged 1 commit intomainfrom
nelson.proia/remove-unnecessary-otel-deps

Conversation

@Nelson-PROIA
Copy link
Copy Markdown
Contributor

Summary

  • Remove opentelemetry-sdk and opentelemetry-exporter-otlp-proto-http from direct dependencies
  • Remove dead GenAISpanProcessor class (never referenced anywhere in the codebase)
  • Keep opentelemetry-api and opentelemetry-semantic-conventions which are the only deps actually used

Per OTel library instrumentation docs, libraries should only depend on the API, not the SDK or exporters. This removes 6 transitive dependencies from the install footprint.

Inspired by #401.

Test plan

  • Verify tracing still works when application configures a TracerProvider
  • Verify no import errors at runtime

Comment on lines 14 to 15
"pyyaml (>=6.0.2,<7.0.0)",
"invoke (>=2.2.0,<3.0.0)",
Copy link
Copy Markdown
Contributor

@simonvdk-mistral simonvdk-mistral Mar 9, 2026

Choose a reason for hiding this comment

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

Out of the context of OTEL dependencies, but looks like both pyyaml and invoke should rather be dev dependencies ?

simonvdk-mistral added a commit that referenced this pull request Mar 9, 2026
Will probably be merged before in #406
simonvdk-mistral added a commit that referenced this pull request Mar 9, 2026
Will probably be merged before in #406
@Nelson-PROIA Nelson-PROIA merged commit 1ec7e90 into main Mar 9, 2026
6 checks passed
simonvdk-mistral added a commit that referenced this pull request Mar 10, 2026
* feat(extra): better OTEL instrumentation

* chore: adapt to v2

* chore(deps): adapt opentelemetry deps

Will probably be merged before in #406

* fix: use public httpx content API

* docs: add some TODOs

* chore: remove custom mistral ai total tokens span attribute

* chore(extra): remove custom operation id span attribute
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.

4 participants