TraceConfig
Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
import { TraceConfig } from "@openrouter/sdk/models";
let value: TraceConfig = {};
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
generationName | string | :heavy_minus_sign: | N/A | |
parentSpanId | string | :heavy_minus_sign: | N/A | |
spanName | string | :heavy_minus_sign: | N/A | |
traceId | string | :heavy_minus_sign: | N/A | |
traceName | string | :heavy_minus_sign: | N/A | |
additionalProperties | Record<string, any> | :heavy_minus_sign: | N/A | { “trace_id”: “trace-abc123”, “trace_name”: “my-app-trace” } |