Skip to content

Conversation

@JorisHeadease
Copy link
Contributor

Pass tracing configuration (OTLP endpoint, insecure flag) from knooppunt to the embedded nuts-node via environment variables. Add otelhttp transport to the reverse proxy for proper trace context propagation across the proxy boundary:
Screenshot 2025-12-04 at 15 01 43

Depends on nuts-foundation/nuts-node#3946

Pass tracing configuration (OTLP endpoint, insecure flag) from knooppunt
to the embedded nuts-node via environment variables. Add otelhttp transport
to the reverse proxy for proper trace context propagation across the proxy
boundary.

Depends on nuts-foundation/nuts-node#3946
@JorisHeadease JorisHeadease marked this pull request as ready for review December 4, 2025 15:03
@JorisHeadease JorisHeadease requested a review from a team as a code owner December 4, 2025 15:03
Copilot AI review requested due to automatic review settings December 4, 2025 15:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enables distributed tracing across the proxy boundary between knooppunt and the embedded nuts-node by propagating the OTLP tracing configuration and instrumenting the reverse proxy with OpenTelemetry.

  • Adds otelhttp.NewTransport to the reverse proxy for automatic span creation on outgoing requests
  • Propagates tracing configuration (OTLP endpoint and insecure flag) from knooppunt to nuts-node via environment variables
  • Updates proxy comments to clarify trace context propagation behavior

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
component/nutsnode/proxy.go Adds otelhttp transport to reverse proxy and updates comments explaining trace context propagation
component/nutsnode/component.go Introduces TracingConfig struct and logic to pass tracing configuration to nuts-node via environment variables
cmd/start.go Passes tracing config from knooppunt's main config to nuts-node component

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JorisHeadease JorisHeadease merged commit 67a61d5 into main Dec 8, 2025
1 check passed
@JorisHeadease JorisHeadease deleted the feat/266-embedded-nutsnode-tracing branch December 8, 2025 10:39
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.

3 participants