Correlate logs to spans with APM agents
- Dominant language
- Gherkin
- Stars
- 427
- Forks
- 125
- PR merge metrics
- No merged PRs in 30d
Description
When logs are correlated, not all agents capture the `span.id` when a span is currently active.
Related Kibana issue: https://github.com/elastic/kibana/issues/159861
### Proposal & steps
- [ ] make APM agents correlate logs on `span.id` in addition to `trace.id` and `transaction.id`.
- [ ] specification change
- [ ] implementation for most agents
- [ ] per-agent documentation update for logs correlation fields
- [ ] general documentation update for correlation fields.
- in order to align with https://github.com/elastic/apm-data/issues/82, always report `span.id` even for transactions would be more consistent. For existing agents apm-data will provide a fallback.
- for OpenTelemetry, the logs are already using `span.id`, thus no change would be required.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.