Skip to main content
POST
List slow events
For how to request attributes with wanted_attributes, see Querying traces.

Authorizations

Authorization
string
header
required

Authorization: Bearer <token>

Body

application/json

Filters for listing slow events such as slow database queries.

site_id
string
required

Site to query.

from
string<date-time>
required

Start of the time range; clamped to the account's data retention.

to
string<date-time>
required

End of the time range; clamped to now.

wanted_attributes
object
required

Attributes to return, keyed by category (e.g. payload, system). The key appsignal.library returns what follows appsignal/ in the span's scope (e.g. active_record), empty for other scopes.

span_kind
null | enum<string>

Only return spans of this kind.

Available options:
Client,
Server,
Internal,
Producer,
Consumer
excluded_attributes
string[]

Attribute keys to exclude; a span is excluded if any listed key is present.

Response

The slow events, with the requested attributes.

digest
string
required

Hash digest identifying the slow event's operation.

count
integer<u-int64>
required

Number of times this slow event occurred in the time range.

Required range: x >= 0
mean
number<double>
required

Mean duration of this slow event in milliseconds.

impact
number<double>
required

Relative impact score (higher means more total time spent).

{key}
string

Additional attributes for the slow event (e.g. query body, category).