Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc: Improve generated traces from common/trace.c #6912

Merged
merged 1 commit into from
Dec 23, 2023

Conversation

cdecker
Copy link
Member

@cdecker cdecker commented Dec 1, 2023

The integration with opentelemetry was sub-optimal: it was generating jaeger-style traces, with short traceIds and we were considering the entire lifetime as a single trace. This PR changes that to a trace for startup and then a trace for any event that doesn't already have a parent.

We also allow using the CLN_TRACEPARENT envvar to attach the startup to a remote / external trace, potentially by whatever started the main process. This is useful to see the startup trace in the wider context of whatever tooling is built around it.

Changelog-Added: tracing: It is now possible to inject a parent for the startup trace by setting the CLN_TRACEPARENT envvar

@cdecker cdecker self-assigned this Dec 1, 2023
The integration with opentelemetry was sub-optimal: it was generating
jaeger-style traces, with short traceIds and we were considering the
entire lifetime as a single trace. This PR changes that to a trace for
startup and then a trace for any event that doesn't already have a
parent.

We also allow using the `CLN_TRACEPARENT` envvar to attach the startup
to a remote / external trace, potentially by whatever started the main
process. This is useful to see the startup trace in the wider context
of whatever tooling is built around it.

Changelog-Added: tracing: It is now possible to inject a parent for the startup trace by setting the `CLN_TRACEPARENT` envvar
@cdecker cdecker force-pushed the 20231201-otel-traceparent branch from 223ef17 to fa6ad5f Compare December 23, 2023 13:32
@cdecker cdecker marked this pull request as ready for review December 23, 2023 13:32
@cdecker cdecker enabled auto-merge (rebase) December 23, 2023 13:32
@cdecker cdecker merged commit 5af9d19 into master Dec 23, 2023
39 checks passed
@cdecker cdecker deleted the 20231201-otel-traceparent branch December 23, 2023 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant