Trace
Extended by
Section titled “Extended by”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Trace(options, processor?): Trace;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
Returns
Section titled “Returns”Trace
Properties
Section titled “Properties”groupId
Section titled “groupId”groupId: string | null;metadata?
Section titled “metadata?”optional metadata: Record<string, any>;name: string;traceId
Section titled “traceId”traceId: string;tracingApiKey?
Section titled “tracingApiKey?”optional tracingApiKey: string;type: "trace";Methods
Section titled “Methods”clone()
Section titled “clone()”clone(): Trace;Returns
Section titled “Returns”Trace
end(): Promise<void>;Returns
Section titled “Returns”Promise<void>
start()
Section titled “start()”start(): Promise<void>;Returns
Section titled “Returns”Promise<void>
toJSON()
Section titled “toJSON()”toJSON(options?): object | null;Serializes the trace for export or persistence.
Set includeTracingApiKey to true only when you intentionally need to persist the
exporter credentials (for example, when handing off a run to another process that
cannot access the original environment). Defaults to false to avoid leaking secrets.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
{ |
|
|
|
Returns
Section titled “Returns”object | null