Continuous profiling is now GA

Generated at:

Component schema

WebEventsDownloadRequest

object1 direct reference

Definition

Request for POST /api/web-events/download. Takes a query (serviceName, eventNames, filter, timeRange, dataset, ordering) and returns the matching web events serialized as a downloadable file rather than as a JSON page.

The response is streamed, so the export is not paginated: a single request returns up to limit events, capped at 5000. Unlike the log and span exports there is no adaptive sampling to disable — web-event retrieval does not sample — so an exported file is the query's whole result set up to the cap.

There is no Dash0 CLI command for web events, so the cap is the only limit; a query matching more than 5000 events has to be narrowed to be exported in full.

string
string[]
TimeReferenceRangerequired

A range of time between two time references.

Dataset

The slug of a dataset, such as default. Where a request may omit it, "Selecting a dataset" in the API introduction describes how the dataset is chosen.

The ordering criteria for the exported web events. Events are written to the file in this order. Supported ordering key: otel.log.time (event timestamp, defaults to descending), optionally followed by dash0.web.event.id ascending, which is the tiebreak web-event retrieval appends to keep its cursor stable.

WebEventExportFormatrequired

The serialization format of the exported file.

  • txt: One rendered line per web event, carrying a fixed field set of timestamp, service, event name, title, duration and trace ID. Ignores columns.
  • ndjson: One OTLP JSON payload per line, each carrying a single web event inside an OTLP resourceLogs envelope — web events are stored as OTLP log records — so each line is independently parseable by any OTLP JSON consumer.
  • yaml: The same per-event OTLP payloads as ndjson, as a multi-document YAML stream with documents separated by ---.
  • csv: A header row plus one row per web event, flattened to the requested columns.
"txt""ndjson""yaml""csv"
integer

The maximum number of web events to export. Defaults to, and is capped at, 5000. A larger value is rejected rather than silently clamped.

string[]

Attribute keys to emit as columns, in order, for the csv format — resource, scope, or event attributes (e.g. service.name, event.name, dash0.web.event.duration). Ignored by the other formats, which have a fixed field set.

Used by 1

These schemas and endpoints reference this type directly.