elastic / elastic/apm-agent-java
span composite count must be > 1
- Dominant language
- Java
- Stars
- 594
- Forks
- 338
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 25
Description
## Describe the bug
From the APM Agents spec (https://github.com/elastic/apm/blob/main/specs/agents/handling-huge-traces/tracing-spans-compress.md?plain=1#L137-L138):
> - `composite`
- `count`: The number of compressed spans this composite span represents.
The minimum count is 2 as a composite span represents at least two spans.
It looks like the java agent is reporting composite spans with a lower count. The following error was observed in ecs logs:
`validation error: span: composite: 'count': validation rule 'min(2)' violated`
## Steps to reproduce
I don't have those unfortunately :(
This is part of the ops KPI review
## Expected behavior
Composite count must be > 1
## Debug logs
`validation error: span: composite: 'count': validation rule 'min(2)' violated`
Contributor guide
Assessment
This issue has not been assessed yet.