open-telemetry / open-telemetry/opentelemetry-java-instrumentation
Instrumentation for Openai responses
@vasantteja is already working on this.
Since Oct 9, 2025.
- Dominant language
- Java
- Stars
- 2.6k
- Forks
- 1.2k
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 214
Description
Describe the bug
im unable to export any openai related spans in java. I can confirm my setup is working as i can see manually exported spans, but there does not seem to be any spans directly related to openai java usage.
Steps to reproduce
Follow instructions from the OpenAI instrumetnation README :https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/openai/openai-java-1.1/library/README.md
Expected behavior
I am expecting to see OpenAI spans in my console/otlp backend
Actual behavior
Do not see any spans at all related to Openai calls.
Javaagent or library instrumentation version
v2.20.1
Environment
JDK: Oracle Java SE 25.0.0 (LTS), HotSpot 64-Bit Server VM (build 25+37-LTS-3491)
OS: macOS Darwin 24.3.0 (ARM64, Kernel xnu-11215.81.4~3)
Additional context
No response
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.