You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are forwarding X-Ray trace data (from batch-get-traces) to the awsxrayreceiver but after extensive debugging we've come to the conclusion that it is either not receiving all spans, or is rejecting some segments somehow. We get missing root spans in multiple services (tested Grafana, Honeycomb), and have verified through debug/file exporters that the OTel collector otlphttp exporter is not receiving many spans.
Note the 4th of 11 spans forwarded contains 5f40bc419f287db1, the root span. This span is not in the trace output above - somewhere in the collector of awsxrayreceiver -> otlphttp it's being lost/dropped/rejected.
Send large trace with nested subsegments to awsxrayreceiver
Fewer segments are exported via otlphttp than exist in the trace, including the all-important root span
Expected Result
Root span is not missing in whatever service the otel collector otlphttp exporter sends spans to. A span exists in our trace without a parent_id and this is the correct root span.
Debug logs in collector of the format:
otelcollector-1 | 2024-11-01T11:11:59.878Z info Traces {"kind": "exporter", "data_type": "traces", "name": "debug", "resource spans": 1, "spans": 4}
otelcollector-1 | 2024-11-01T11:11:59.878Z info ResourceSpans #0
otelcollector-1 | Resource SchemaURL:
otelcollector-1 | Resource attributes:
otelcollector-1 | -> service.name: Str(universal)
otelcollector-1 | -> cloud.provider: Str(aws)
otelcollector-1 | -> container.name: Str(universal)
otelcollector-1 | -> container.id: Str(ae5ef46bb63343e0852b4c4fd32657a2-3577057898)
otelcollector-1 | -> telemetry.sdk.version: Str(1.34.1)
otelcollector-1 | -> telemetry.sdk.name: Str(opentelemetry for java)
otelcollector-1 | -> telemetry.sdk.language: Str(java)
otelcollector-1 | -> service.version: Str(b6ccc491)
otelcollector-1 | ScopeSpans #0
otelcollector-1 | ScopeSpans SchemaURL:
otelcollector-1 | InstrumentationScope
otelcollector-1 | Span #0
otelcollector-1 | Trace ID : 672398f2319790d89a186aaaa8291f8a
otelcollector-1 | Parent ID : 35ed7e0914764641
otelcollector-1 | ID : 629361ce9b60af30
otelcollector-1 | Name : universal
otelcollector-1 | Kind : Internal
otelcollector-1 | Start time: 2024-10-31 14:49:23.1754368 +0000 UTC
otelcollector-1 | End time: 2024-10-31 14:49:26.272440576 +0000 UTC
otelcollector-1 | Status code : Unset
otelcollector-1 | Status message :
Nothing incorrect in the logs that do show, but there are missing log entries for the missing spans. Given that these are exporter debug logs, the only remaining outcome we see is that the awsxrayreceiver is at fault?
### Additional context
_No response_
The text was updated successfully, but these errors were encountered:
Component(s)
No response
What happened?
Description
We are forwarding X-Ray trace data (from batch-get-traces) to the awsxrayreceiver but after extensive debugging we've come to the conclusion that it is either not receiving all spans, or is rejecting some segments somehow. We get missing root spans in multiple services (tested Grafana, Honeycomb), and have verified through debug/file exporters that the OTel collector otlphttp exporter is not receiving many spans.
The fileexporter returns:
Which is missing a number of spans, including the root span (5f40bc419f287db1 which has no parent_id)
We run this with a batch processor, and have tested with no processors.
Our lambda sends xray trace data to the otel collector, has been extensively tested/debugged, and is verifiably sending the root span:
Note the 4th of 11 spans forwarded contains 5f40bc419f287db1, the root span. This span is not in the trace output above - somewhere in the collector of awsxrayreceiver -> otlphttp it's being lost/dropped/rejected.
And the relevant message being sent:
The message is, as far as we can tell, a valid trace message. There are no errors/warnings in the collector logs.
Example message:
Steps to Reproduce
Send large trace with nested subsegments to awsxrayreceiver
Fewer segments are exported via otlphttp than exist in the trace, including the all-important root span
Expected Result
Root span is not missing in whatever service the otel collector otlphttp exporter sends spans to. A span exists in our trace without a parent_id and this is the correct root span.
Actual Result
Root span is missing.
Collector version
0.112.0
Environment information
Environment
OS: amazonlinux:2023
Compiler(if manually compiled): golang:1.22-alpine, go.opentelemetry.io/collector/cmd/builder@v0.112.0
Binary:
OpenTelemetry Collector configuration
Log output
Nothing incorrect in the logs that do show, but there are missing log entries for the missing spans. Given that these are exporter debug logs, the only remaining outcome we see is that the awsxrayreceiver is at fault?
The text was updated successfully, but these errors were encountered: