Skip to content
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

bug: burr.integrations.opentelemetry.init_instruments() doesn't work consistently. #408

Open
zilto opened this issue Oct 28, 2024 · 0 comments
Labels

Comments

@zilto
Copy link
Collaborator

zilto commented Oct 28, 2024

This requires some investigation as it currently fails silently. We can tell it fails because no telemetry appears in Burr UI. In case of success, the two should lead to equivalent Burr UI telemetry displayed:

from opentelemetry.instrumentation.openai import OpenAIInstrumentor

OpenAIInstrumentor().instrument()

# build and run the app
app = ApplicationBuilder().with_tracker(..., use_otel_tracing=True).build()
app.run(...)
from burr.integrations.opentelemetry import init_instruments

init_instruments("openai")

# build and run the app
app = ApplicationBuilder().with_tracker(..., use_otel_tracing=True).build()
app.run(...)

Sidenote: the benefit of the Burr integration is that it allows to instrument multiple libraries with the same import by changing the strings passed as arg

@zilto zilto added the triage label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant