Skip to content

[log-trace-correlation] Update dependencies, align with OTel/DD best …#173

Draft
dineshg13 wants to merge 1 commit intomainfrom
update/log-trace-correlation
Draft

[log-trace-correlation] Update dependencies, align with OTel/DD best …#173
dineshg13 wants to merge 1 commit intomainfrom
update/log-trace-correlation

Conversation

@dineshg13
Copy link
Member

…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

What does this PR do?

Motivation

…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>
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