Commit a18b5ca
authored
fix: reqwest must use blocking client since opentelemetry 0.28 (#220)
I was getting in my local and deployed testing:
```
thread 'OpenTelemetry.Traces.BatchProcessor' panicked at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/core/src/ops/function.rs:250:5:
there is no reactor running, must be called from the context of a Tokio 1.x runtime
```
Checking some searches and other Github discussions, I found [this bug](open-telemetry/opentelemetry-rust#2673) which linked [this doc section](https://github.com/open-telemetry/opentelemetry-rust/blob/main/docs/migration_0.28.md#async-runtime-requirements-removed). It seems only the blocking reqwest client is supported by otlp now. This seems to fix it on my local.1 parent 10af282 commit a18b5ca
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
0 commit comments