Skip to content

openai: don't crash on no-op #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

openai: don't crash on no-op #54

wants to merge 1 commit into from

Conversation

codefromthecrypt
Copy link
Contributor

What does this pull request do?

When OTEL_SDK_DISABLED=true, opentelemetry-instrument still instruments OpenAI, just with NoOp tracer and meter providers. This ensures when NoOp, openai instrumentation doesn't crash.

Related issues

Closes #53

Signed-off-by: Adrian Cole <[email protected]>
@xrmx
Copy link
Member

xrmx commented Feb 27, 2025

Superseded by #56

@xrmx xrmx closed this Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

openai: investigate metrics code relying on span recording
2 participants