Conversation
89a48ed to
856791f
Compare
59dbfec to
a437ffe
Compare
|
@lzchen PR is rebased and all checks are passing now. Could you please merge it when you get a chance? Thanks! |
|
Hi @Nik-Reddy , will have to wait for a maintainer to merge. |
a437ffe to
9515baf
Compare
86218c5 to
8e48615
Compare
|
@lmolkova I am thinking we can use openinference for adding instrumentation coverage for cohere. wdyt? |
it doesn't seem like they have instrumentation for it |
|
This PR has been automatically marked as stale because it has not had any activity for 14 days. It will be closed if no further activity occurs within 14 days of this comment. |
be60e6a to
2d1208f
Compare
Pull request dashboard statusWaiting on the author · refreshed 2026-09-21 18:32 UTC Respond to 1 review item (e.g. link a commit, explain why not, ask a follow-up):
Status above doesn't look right?
|
5b5dfd0 to
e7ce546
Compare
lmolkova
left a comment
There was a problem hiding this comment.
A few more comments.
The key question, @Nik-Reddy are you going to follow up with real instrumentation right away? We already have a couple of empty instrumentations in this repo and unless you'd like to work on actual cohere instrumentation, I would prefer to not add another one.
|
Hi @Nik-Reddy — just a friendly reminder that this pull request is waiting on you. The dashboard status comment has the open items and is kept current.
|
|
@lmolkova Yes, I'm committed to following up with the actual instrumentation right after #102 lands. The plan (laid out in #56) is:
Each one lands before the next opens, same as the other provider packages. PR 2 will follow within days of #102 merging. Happy to rebase and resolve the outstanding review threads so this is merge-ready whenever you get a chance to look. |
dd0888d to
7c1551a
Compare
Adds a scaffold-only Cohere V2 instrumentation package as PR 1 of 4 tracked in open-telemetry#56. The CohereInstrumentor sets up TelemetryHandler with completion_hook support but does not yet wrap any Cohere client methods. Package: opentelemetry-instrumentation-genai-cohere Import: opentelemetry.instrumentation.genai.cohere Class: CohereInstrumentor Cohere SDK floor: cohere >= 5.13.0 (V2 GA) Python: 3.10, 3.11, 3.12, 3.13, 3.14 Scope: - New package skeleton (src/, tests/, examples/, pyproject.toml, README.rst) - Smoke tests covering instantiation, dependency reporting, instrument/ uninstrument cycle, idempotent calls, no-provider fallback - Workspace registration: root pyproject.toml, tox.ini, eachdist.ini, uv.lock - Example placeholders (manual and zero-code) - Towncrier changelog fragment (.changelog/102.added) - TelemetryHandler with completion_hook following openai instrumentor pattern - Version set to 1.1b0.dev matching global repo version - Not included in release_packages until real instrumentation lands Not in this PR (follow-ups per open-telemetry#56): - PR 2: chat completions instrumentation (sync, async, non-streaming) - PR 3: streaming - PR 4: conformance tests
7c1551a to
955bf10
Compare
Resolved conflicts in README.md, pyproject.toml, tox.ini, and uv.lock from upstream package additions (dspy, portkey). Regenerated README.md and uv.lock from source instead of hand-editing generated output.
412b76d to
8dae262
Compare
|
This PR has been automatically marked as stale because it has not had any activity for 14 days. It will be closed if no further activity occurs within 14 days of this comment. |
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.