Build Metadata & Deep Linking
Adds commit/version/time resource attributes and span events containing a ready-to-use Pyroscope query URL when trace/profile correlation is enabled.
See generator-otel and loader-otel code for pyroscope.link span event creation.
Steps:
- Build with ldflags injecting git commit, version, build time.
- Run with
PYROSCOPE_ENABLE=true PYROSCOPE_TRACE_CORRELATION=true. - Open trace in Tempo → locate
pyroscope.linkevent. - Follow
pyroscope.query_urlto filtered profile view.