Creates a HooksProvider that integrates Restate invocations with
OpenTelemetry tracing using the SDK hook system.
The helper always creates one span per invocation attempt, with the standard
Restate attributes restate.invocation.id and
restate.invocation.target. Parent context extraction is always based on
W3C trace context headers from the Restate attempt headers.
When runSpans is enabled, it also creates child spans for ctx.run()
closures that actually execute, adding the standard restate.run.name
attribute.
Creates a HooksProvider that integrates Restate invocations with OpenTelemetry tracing using the SDK hook system.
The helper always creates one span per invocation attempt, with the standard Restate attributes
restate.invocation.idandrestate.invocation.target. Parent context extraction is always based on W3C trace context headers from the Restate attempt headers.When
runSpansis enabled, it also creates child spans forctx.run()closures that actually execute, adding the standardrestate.run.nameattribute.