trace Context • TypeScript AI Agent SDK

traceContext: API reference for traceContext

traceContext

Function

</div>

This function is defined in the trace module.

Signature

python
def traceContext(metadata?: Record<string, any>) -> TraceContext

Returns

ResponseField TraceContext

The result of the operation.

Uses

  • generateTraceId
  • generateSpanId

Source

View on GitHub

src/trace/index.ts at line 407


Related Documentation