> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# formatTraceparent()

> Function exported by @botmesh/core/spi.

```ts theme={null}
function formatTraceparent(ctx): string | undefined;
```

Defined in: [telemetry/w3c.ts:39](https://github.com/andresayac/botmesh/blob/main/packages/core/src/telemetry/w3c.ts#L39)

The W3C `traceparent` of `ctx` (version `00`), or `undefined` when its ids are not
W3C-shaped. `traceFlags` defaults to `01` (sampled).

## Parameters

| Parameter | Type |
| - | - |
| `ctx` | [`SpanContextRef`](https://botmesh.afaya.com.co/api/core/interfaces/SpanContextRef) |

## Returns

`string` | `undefined`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.