open-telemetry / opentelemetry-rust

The Rust OpenTelemetry implementation
https://opentelemetry.io
Apache License 2.0
1.85k stars 431 forks source link

Add experimental zpages #269

Closed jtescher closed 1 year ago

jtescher commented 4 years ago

See the spec change for details https://github.com/open-telemetry/opentelemetry-specification/pull/890

TommyCpp commented 3 years ago

I think currently zPages should contain following components:

  1. a custom span processor(zPage processor I guess) to collect spans.
  2. an aggregatorto collect sample span, and record related metrics (running, error, latency buckets counts, etc.)
  3. a http server to serve those data to users.

I'd image we could combine aggregator and http server and let them running in backgroud where zPage processor "export" spans through a channel shared with aggregator. If those sounds like a good start. I could dig around and work on it to see if there is any catch.

jtescher commented 3 years ago

@TommyCpp I haven't looked to much into it, but that sounds reasonable to me

jtescher commented 1 year ago

Completed in #595