[log-trace-correlation] Update dependencies, align with OTel/DD best …#173
Draft
[log-trace-correlation] Update dependencies, align with OTel/DD best …#173
Conversation
…practices - Update Go OTel SDK dependencies (v1.19.0 -> v1.40.0, otelhttp v0.44.0 -> v0.65.0) - Update Go version from 1.20 to 1.24 in go.mod and Dockerfiles - Align log-trace correlation with latest OTel and DD specs - Add detailed comments on DD trace ID format (128-bit to 64-bit conversion) - Extract traceFields() helper and separate convertTraceID/convertSpanID functions - Add graceful shutdown with signal handling (SIGINT/SIGTERM) - Use http.Server for proper server lifecycle management - Add /health endpoint for docker-compose health checks - Add proper error handling (return on error instead of log.Fatal in request loop) - Pin DD Agent image to major version 7 - Add resource limits and health checks to docker-compose services - Add Autodiscovery labels for DD log source/service tagging - Add DD_SITE env var support for multi-region deployments - Add .env.example for configuration reference - Use OTel semconv for service name resource attributes - Add ReadHeaderTimeout to HTTP server for security best practice Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…practices
What does this PR do?
Motivation