MrSibe opened a new pull request, #3195:
URL: https://github.com/apache/dubbo-go/pull/3195
## Summary
Implements context-aware logging with automatic OpenTelemetry trace
correlation for distributed tracing.
Related issue: #3182
## What's New
- **CtxLogger interface**: Extends `Logger` with context-aware methods
(`CtxInfof`, `CtxErrorf`, etc.)
- **Automatic trace injection**: Logs automatically include `trace_id`,
`span_id`, `trace_flags` from context
- **Dual logger support**: Works with both Zap and Logrus
- **Optional error recording**: Can record error logs to OpenTelemetry spans
- **Backward compatible**: Existing code works without changes
- **Opt-in**: Disabled by default, enabled via configuration
## Configuration
```yaml
dubbo:
logger:
driver: zap
level: info
format: json
trace-integration:
enabled: true
record-error-to-span: true
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]