DataDog / nginx-datadog

Enhance NGINX Observability and Security with Datadog's Module
https://www.datadoghq.com
Apache License 2.0
25 stars 10 forks source link

Allow otel trace ids to be output in logs #102

Closed phillipuniverse closed 3 months ago

phillipuniverse commented 3 months ago

Reading the variables section of the docs, we can access datadog_trace_id and datadog_span_id which are integers. It would be great to be able to instead output the OpenTelemetry version of trace and span ids based on a hex string instead.

This would be similar to how traceparent works just with the ability to write those variables to logs.

Thanks!

dmehala commented 3 months ago

Hi @phillipuniverse

I understand you would like to output the trace and span IDs in the OpenTelemetry format (hex strings) instead of the current Datadog format (decimal representation). Can you confirm?

phillipuniverse commented 3 months ago

@dmehala yes that is right.