As specified in this APM agents spec, there might be different reasons for spans being dropped by APM agents.
In this case agents should collect statistics about the dropped spans in a transaction object as follows:
{
... ,
"dropped_spans_stats": [
{
"type": "external",
"subtype": "http",
"destination_service_resource": "example.com:443",
"outcome": "failure",
"duration.count": 28,
"duration.sum.us": 123456
},
{
"type": "db",
"subtype": "mysql",
"destination_service_resource": "mysql",
"outcome": "success",
"duration.count": 81,
"duration.sum.us": 9876543
}
]
}
This issue is about extending the APM server's intake API to accept this kind of data and store it with the transaction documents in ES.
As specified in this APM agents spec, there might be different reasons for spans being dropped by APM agents.
In this case agents should collect statistics about the dropped spans in a
transactionobject as follows:This issue is about extending the APM server's intake API to accept this kind of data and store it with the transaction documents in ES.