Skip to content

Instrumentation for Openai responses #14783

@gkarthi-signoz

Description

@gkarthi-signoz

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.

Metadata

Metadata

Assignees

Labels

contribution welcomeRequest makes sense, maintainers probably won't have time, contribution would be welcomeenhancementNew feature or requestrepro provided

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions