vercel / turborepo

Build system optimized for JavaScript and TypeScript, written in Rust
https://turbo.build/repo/docs
MIT License
26.31k stars 1.82k forks source link

Integrate Opentelemetry #1435

Closed weyert closed 8 months ago

weyert commented 2 years ago

Describe the feature you'd like to request

I would like to see to Traces of the executed build similar to profiling json that can be exported instead of it going to a JSON file it will create Trace spans which can be exported via the OTLP protocol of Opentelemetry to any supported vendor platform (e.g. otel-collector etc)

Describe the solution you'd like

I would like to be able to use the CNCF standard for tracing the Opentelemetry standard (www.opentelemetry.io). It's has great support by the popular tracing vendors, such as New Relic, Datadog, or Dynatrace, Splunk.

Describe alternatives you've considered

Converter of profiler.json to Opentelemetry traces via an external tool

gsoltis commented 2 years ago

@weyert run_state.go includes support for outputting this information in a format for the chrome profiler. If we want more profiling output options, maybe that would be the integration point?

weyert commented 2 years ago

Cool, I will have a look 🤓

mehulkar commented 1 year ago

@arlyon can you take this one? I think your work is applicable here, but I'm not 100% sure if it matches what @weyert is looking for

arlyon commented 1 year ago

The good news is I have been working on this for use with the new rust codepath. I will update this issue when it is available (under the experimental-rust-codepath flag for now)