opentelemetry-rust icon indicating copy to clipboard operation
opentelemetry-rust copied to clipboard

[Feature]: SimpleSpanProcessor to be consistent with SimpleLogRecordProcessor

Open cijothomas opened this issue 1 year ago • 4 comments
trafficstars

Related Problems?

No response

Describe the solution you'd like:

https://github.com/open-telemetry/opentelemetry-rust/pull/1308 modified SimpleLogRecordProcessor to simply take a Mutex protected call to Exporter. Proposing to make the similar change to SimpleSpanProcessor, effectively reversing https://github.com/open-telemetry/opentelemetry-rust/pull/502.

We'll get to eliminate the crossbeam-channel by doing this, and also ensures there is more consistency between signals.

Considered Alternatives

No response

Additional Context

No response

cijothomas avatar Nov 28 '23 22:11 cijothomas

This may simplify things, but we should check the overall throughput to make sure it's still acceptable given our performance focus (e.g. if an exporter has an average latency of ~1 second)

jtescher avatar Nov 29 '23 15:11 jtescher

I don't think the perf would be good here (and will directly be affected by how slow the exporter is!). For performance scenarios - there is BatchProcessors to the rescue, so my main point was - we should not worry about perf for SimpleProcessor, which should only be used for testing/learning purposes!

cijothomas avatar Nov 29 '23 18:11 cijothomas

Any further comments/objections to do this?

cijothomas avatar Feb 22 '24 17:02 cijothomas

One of the concerns I believe was users needing performance in hot-path without depending on the external runtime. This should be resolved with #1506.

lalitb avatar Feb 22 '24 18:02 lalitb