Skip to content

[spans dropped stats] Extend intake to support stats for dropped spans #5850

@AlexanderWert

Description

@AlexanderWert

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.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions