-
Notifications
You must be signed in to change notification settings - Fork 7
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
Correlate Span ID and Trace ID to Kong logs. #25
Comments
Hi @mfischler, Thank you for reporting this issue. Our team is currently reviewing the details, and we'll work on addressing it as soon as possible. To further enhance the visibility of your request and for future feature suggestions, we encourage you to submit them through our dedicated support platform at Datadog Support Portal. |
Closed a feature implemented using environment variables. Updated technique provided by Datadog. |
can we store the trace id in if you're using the |
If On another note, I was able to correlate traces with logs by setting an NGINX variable. However, that solution would requires to manually update the log format which is not that straightforward for Kong. |
yup i think can we consider setting it on any of those places and documenting it for others to use? we actually maintain a private internal fork just for this but would love to use the upstream if this was implemented |
I opened #61. However, I need to play a bit with log correlation to know if the TraceID and SpanID is enough. Hopefully that will be merged and released by tomorrow. Thank you! |
Version of kong: 3.5.0
Platform: kubernetes
ddtrace version: 0.1.2-1
Configuration Type: Specific services
Configuration Details:
{ "instance_name": null, "enabled": true, "updated_at": 1704398691, "route": null, "created_at": 1704398691, "id": "8bba4f3d-7c08-5dc7-a4e7-e77d6cf58e12", "tags": null, "consumer": null, "config": { "resource_name_rule": null, "static_tags": null, "service_name": "{vault://env-vault/KONG_SERVICE_NAME}", "environment": "{vault://env-vault/KONG_ENVIRONMENT}", "initial_sample_rate": null, "agent_endpoint": "{vault://env-vault/KONG_DATADOG_AGENT_TRACING_ENDPOINT}", "initial_samples_per_second": 100 }, "service": null, "protocols": [ "grpc", "grpcs", "http", "https" ], "name": "ddtrace" }
Detailed description of the problem, and if known, the expected behavior.
Not Sure if possible, is there a way to correlate the Span ID and Trace ID to the logs collected from Kong?
Validation:
Kong logs would include the tags "span.id" and "trace.id" generated by the Datadog Trace plugin.
The text was updated successfully, but these errors were encountered: