provider Spans GET
/api/v2/spans/events @utdk/datadog
/api/v2/spans/events Get a list of spans
List endpoint returns spans that match a span search query.
[Results are paginated][1].
Use this endpoint to see your latest spans.
This endpoint is rate limited to `300` requests per hour.
[1]: /logs/guide/collect-multiple-logs-with-pagination?tab=v2api
- filter[query] query
- Search query following spans syntax.
- string
- filter[from] query
- Minimum timestamp for requested spans. Supports date-time ISO8601, date math, and regular timestamps (milliseconds).
- string
- filter[to] query
- Maximum timestamp for requested spans. Supports date-time ISO8601, date math, and regular timestamps (milliseconds).
- string
- sort query
- Order of spans in results.
- enum: timestamp, -timestamp
- page[cursor] query
- List following results with a cursor provided in the previous query.
- string
- page[limit] query
- Maximum number of spans in the response.
- integer
Try it
Authentication
Configure credentials for Datadog API V2 Collection
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import datadog from '@utdk/datadog';
await datadog.listspansget({
"page[limit]": 10
})