Replies: 1 comment 8 replies
-
Interesting. The http call is done from a @TommyCpp Could use your help here, as I am unsure of the details here. @V0ldek Separately, can you share why are you not using an async time? i am curious to know the details, as we are currently working to make OTel work without any async runtimes, and instead leveraging a dedicated thread spun up by OTel itself. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to configure a tracing provider for opentelemetry without having any async runtime, but I constantly get "there is no reactor running, must be called from the context of a Tokio 1.x runtime" errors even with
install_simple
.At first I tried this code:
expecting
install_simple
instead ofinstall_batch(Tokio)
to work without a runtime. It doesn't,tonic
requires Tokio somewhere internally. I found thehttp-proto
feature that is supposed to allow you to use something else thantonic
, pulled inopentelementry-http
withreqwest
enabled andreqwest
itself, and changed the exporter configuration to:This allows the pipeline to build, but as soon as I run actual logic code and report a span I get the reactor error again. Here's the full stacktrace (omitting my application stack):
What do I need to do to run opentelemetry collection from my app without any async runtime?
Beta Was this translation helpful? Give feedback.
All reactions