@hotmeshio/hotmesh
Version:
Serverless Workflow
15 lines (14 loc) • 613 B
TypeScript
import { StringScalarType } from './common';
/**
* Executes a distributed trace, outputting the provided attributes
* to the telemetry sink (e.g. OpenTelemetry).
*
* This trace will only run once per workflow execution by default.
*
* @param {StringScalarType} attributes - Key-value attributes to attach to the trace.
* @param {{ once: boolean }} [config={ once: true }] - If `once` is true, trace only runs once.
* @returns {Promise<boolean>} True if tracing succeeded, otherwise false.
*/
export declare function trace(attributes: StringScalarType, config?: {
once: boolean;
}): Promise<boolean>;