v1

latestOpenAPI 3.0.3Apache 2.02026-07-142201861.5 MB
Discover

List Trace Item Attributes

List the attribute keys available on a given trace item dataset (spans, logs, trace metrics, etc.), with optional substring and structured filtering.

get/api/0/organizations/{organization_id_or_slug}/trace-items/attributes/

Path parameters

organization_id_or_slugstring required

The ID or slug of the organization the resource belongs to.

Query parameters

statsPeriodstring

The period of time for the query, will override the start & end parameters, a number followed by one of:

  • d for days
  • h for hours
  • m for minutes
  • s for seconds
  • w for weeks

For example, 24h, to mean query data starting from 24 hours ago to now.

startstring date-time

The start of the period of time for the query, expected in ISO-8601 format. For example, 2001-12-14T12:34:56.7890.

endstring date-time

The end of the period of time for the query, expected in ISO-8601 format. For example, 2001-12-14T12:34:56.7890.

dataset'logs' | 'preprod' | 'processing_errors' | 'spans' | 'tracemetrics'

The trace item dataset to list attributes for. One of itemType or dataset is required.

itemType'logs' | 'preprod' | 'processing_errors' | 'spans' | 'tracemetrics'

Deprecated alias of dataset. Use dataset instead.

attributeTypestring[]

Filter to attributes of one or more types. Defaults to all types.

substringMatchstring

Restrict results to attribute names containing this substring (case-sensitive).

querystring

Sentry search syntax to filter trace items before computing attributes.

cursorstring

A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.

Response

keystring required
namestring required
secondaryAliasesstring[]
attributeType'string' | 'number' | 'boolean' required