> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-5b6e02fd.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# TraceConfig - Go SDK

> TraceConfig type definition

<Warning>
  The Go SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/go-sdk/issues).
</Warning>

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.

## Fields

| 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` | map\[string]`any` | :heavy\_minus\_sign: | N/A         | `{"trace_id": "trace-abc123","trace_name": "my-app-trace"}` |
