Comments (2)
Looking into this, I'd love some clarification on how the scenario would work. My current approach has been to set up an integration test based on https://github.com/open-telemetry/opentelemetry-rust/blob/main/examples/logs-basic/src/main.rs and extend it such that we have multiple background tasks with set up with references to the LoggerProvider
instance through an Arc
.
The shutdown I wanted to test was to create a forced shutdown through an interrupt. I initially tried this with setting up multiple exporters with a single LoggerProvider
and got a panic from this line
Would taking the same approach with multiple LoggerProvider
references in separate tasks be a similar scenario?
from opentelemetry-rust.
The shutdown I wanted to test was to create a forced shutdown through an interrupt. I initially tried this with setting up multiple exporters with a single
which I think is expected behavior.LoggerProvider
and got a panic from this lineWould taking the same approach with multiple
LoggerProvider
references in separate tasks be a similar scenario?
Looking at our API and the spec I actually think we might need a change. https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/sdk.md#shutdown
Right now i think this panic isn't actually doing what I would want/expect. There's already a result being returned. In this case it's a vec of results but I feel like we should be passing back a default of Vec
error result.
Shutdown SHOULD provide a way to let the caller know whether it succeeded, failed or timed out.
Panics don't really "let the caller know".
from opentelemetry-rust.
Related Issues (20)
- Flaky test HOT 1
- [Bug]: missing attributes in prometheus exporter HOT 4
- Memory optimization for metric datapoints HOT 8
- OpenTelemetry Tracing API vs Tokio-Tracing API for Distributed Tracing HOT 3
- Overview of Major blockers for GA/Stable Release
- [Bug]: Span kind is always set to "internal" in v0.22.0 HOT 4
- URL encoded values for `OTEL_EXPORTER_OTLP_HEADERS` are not supported
- Updates opentelemetry registry with Rust ecosystem crates HOT 1
- urlencoding dependency removal HOT 2
- [Bug]: converting from jaeger to otlp does not compile HOT 2
- OTLP Exporter builder issues HOT 9
- [Bug]: OpenTelemetryTracingBridge is waiting a LoggerProvider HOT 2
- Recover Metrics Sum HashMap from Mutex poisoning during lock.
- [Bug]: Missing parent span used in Condvar in Jaeger exports HOT 2
- Metrics - Delta aggregation should not export unless new measurements are reported in current cycle
- Generate semantic conventions for metrics.
- Metrics SDK multi-threaded testing
- [Bug]: the Meter::i64_histogram() api removed HOT 2
- [Bug]: Context::current().with_remote_span_context() not working HOT 3
- [Bug]: Error sending data to New Relic OTEL service HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opentelemetry-rust.