In the thread a potential issue with :kbn/internal/apm/traces/{traceId}/span_links/{spanId}/children endpoint was unraveled. In which while fetching linked spans APM UI will assume that span.subtype is a required field and fail when the field is not set, see the required fields definition in the code.
Steps to reproduce:
Run provided go script to ingest traces without subtype.
In Kibana go to Applications > Service Inventory > Transactions > Span details > Span Links
Observe 500 error
Expected behavior:
Either span.subtype shouldn't be a required field or this error should be handled gracefully by filtering out spans which don't have the field.
Screenshots (if relevant):
Provide logs and/or server output (if relevant):
GET :kbn/internal/apm/traces/{traceId}/span_links/{spanId}/children
Describe the bug:
In the thread a potential issue with
:kbn/internal/apm/traces/{traceId}/span_links/{spanId}/children
endpoint was unraveled. In which while fetching linked spans APM UI will assume thatspan.subtype
is a required field and fail when the field is not set, see the required fields definition in the code.Steps to reproduce:
subtype
.Expected behavior:
Either
span.subtype
shouldn't be a required field or this error should be handled gracefully by filtering out spans which don't have the field.Screenshots (if relevant):
Provide logs and/or server output (if relevant):
GET :kbn/internal/apm/traces/{traceId}/span_links/{spanId}/children
Any additional context:
An example go script to ingest the data.