Replies: 1 comment
-
PR is welcome and if the increased size and maintain cost is accept then we can consider support it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks! 👋
I've been exploring rspack's tracing capabilities and was impressed by the Perfetto integration - it's great for local profiling. I was hoping to be able to add this tracing in a way that could get collected more automatically internally.
The Problem
For teams using Datadog (or similar APM platforms) for observability across CI/CD pipelines, or developer usage of the rspack dev server it'd be great to track rspack build performance alongside everything else. Right now the only options are:
perfetto→ writes to a file, great for local analysislogger→ stdout, good for CI logsNeither of these integrates with the Datadog APM platform out of the box. We currently collect build metrics but would love an automated way to collect higher fidelity tracing information at scale.
What I'm Proposing
Add an
oteltracing layer that exports via OpenTelemetry Protocol (OTLP). The nice thing about OTLP is it's vendor-neutral - one implementation works with lots of other tools:How It Would Work
Usage would follow the existing patterns:
For Datadog specifically, you'd enable the OTLP receiver in the agent and you're good to go:
The Motivation
The appeal here is:
I imagine teams doing CI builds at scale would find this useful.
Implementation Thoughts
The good news is rspack already uses the
tracingcrate, and there's a maturetracing-opentelemetrybridge. So it should slot in pretty cleanly alongside the existingPerfettoTracerandStdoutTracer.The main pieces would be:
opentelemetry,opentelemetry-otlp,tracing-opentelemetryas optional depsOtelTracerimplementing the existingTracertraitQuestions
Before I dig deeper, wanted to check:
otelvsopentelemetry)?Happy to put together a PR if there's interest. Would love to hear thoughts either way!
Wasn't sure the right home so posted here as well
#12915
Can remove which ever is less correct!
Beta Was this translation helpful? Give feedback.
All reactions