Add Cohere instrumentation package scaffolding#102
Open
Nik-Reddy wants to merge 2 commits into
Open
Conversation
89a48ed to
856791f
Compare
lzchen
approved these changes
Jun 4, 2026
59dbfec to
a437ffe
Compare
Contributor
Author
|
@lzchen PR is rebased and all checks are passing now. Could you please merge it when you get a chance? Thanks! |
Contributor
|
Hi @Nik-Reddy , will have to wait for a maintainer to merge. |
eternalcuriouslearner
approved these changes
Jun 8, 2026
a437ffe to
9515baf
Compare
Contributor
Author
9a1fc63 to
86218c5
Compare
86218c5 to
8e48615
Compare
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: continuescaffold + chat completionsfrom my previous workopentelemetry-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.