Add Cohere instrumentation package scaffolding#102
Open
Nik-Reddy wants to merge 2 commits into
Open
Conversation
ffb9258 to
89a48ed
Compare
Adds a scaffold-only Cohere V2 instrumentation package as PR 1 of 4 tracked in open-telemetry#56. The CohereInstrumentor sets up tracer, logger, and meter providers but does not yet wrap any Cohere client methods. Chat completions, streaming, and conformance tests land in follow-up PRs per the staged roadmap in open-telemetry#56. Ported from open-telemetry/opentelemetry-python-contrib#4418, adapted to the new-repo conventions (opentelemetry-instrumentation-genai-cohere package name and opentelemetry.instrumentation.genai.cohere import path) mirroring the opentelemetry-instrumentation-genai-claude-agent-sdk scaffold shape.
89a48ed to
856791f
Compare
lzchen
approved these changes
Jun 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a scaffold-only Cohere V2 instrumentation package as PR 1 of 4 tracked in #56. The
CohereInstrumentorsets up tracer, logger, and meter providers but does not yet wrap any Cohere client methods.Ported from open-telemetry/opentelemetry-python-contrib#4418, adapted to the new-repo conventions:
opentelemetry-instrumentation-genai-cohereopentelemetry.instrumentation.genai.cohereCohereInstrumentorcohere >= 5.13.0(V2 GA floor; 5.0.0 lacksClientV2)opentelemetry-api ~= 1.40,opentelemetry-instrumentation ~= 0.61b0,opentelemetry-semantic-conventions ~= 0.61b0,opentelemetry-util-genai >= 1.0b0.devThis mirrors the
opentelemetry-instrumentation-genai-claude-agent-sdkscaffold shape.Scope
src/,tests/,examples/,pyproject.toml,README.rst,LICENSE)pyproject.toml,tox.ini,eachdist.ini,uv.lock, and regeneratedinstrumentation/README.mdexamples/manualandexamples/zero-code) with explicit scaffold disclaimers per Cohere V2 instrumentation: continue scaffold + chat completions work fromopentelemetry-python-contrib#4418#56.changelog/102.added)Not in this PR (follow-ups per #56)
Validation
uv locksucceeds;coherev7.0.2 added with transitive depstox -e generateregeneratesinstrumentation/README.mdwith the cohere row alphabetically inserteduv run ruff check instrumentation/opentelemetry-instrumentation-genai-cohere/passespytestpasses 7/7 on both latest and oldest dep sets across the full Python 3.10-3.14 matrixCloses part of #56.