OpenTelemetryObserver
Parameters and properties
Section titled “Parameters and properties”sinkRequiredObservationSinkHub sink that turns observations into parented workflow, task, attempt, dispatch and operation spans plus the same metrics. Do not also pass this observer as telemetry to the same run: spans and metrics would be duplicated.closeRequired() => voidEnds every open workflow, task, attempt, dispatch and operation span as cancelled or failed. It does not flush or shut down the SDK.startDispatchRequired() => DispatchTelemetrySessionStart an independent session for one public dispatch invocation; called before validation.observeRequired(event: WorkflowEvent) => voidRecords a workflow event as spans and metrics; workflow.start() calls it when the observer is passed as telemetry.