- If you’re using Spring Boot, the usual Spring Boot actuator configuration is required; no additional setup is needed.
- For the vanilla SDK:
dev.restate:sdk-interceptor-opentelemetry— OpenTelemetry tracing, directly using the OpenTelemetry SDK.dev.restate:sdk-interceptor-micrometer— Micrometer Observation tracing, using the Micrometer bridge.
- One
attempt <target>span per handler invocation attempt, linked to the parent trace context propagated from Restate via W3C Trace Context headers. - One
run (<name>)child span perctx.run(name, ...)block that actually executes (replayed runs are skipped).
Using Spring Boot
When using the Spring Boot starters, tracing is configured automatically if anObservationRegistry bean is present (Micrometer-based). No extra registration is needed.
Add the standard Spring Boot tracing dependencies:
application.properties:
Using OpenTelemetry (vanilla SDK)
Add the dependency:GlobalOpenTelemetry instance. That’s it: the dependency picks up the global instance automatically, no further setup is needed.
Using a specific OpenTelemetry instance
If you want to use a specific OpenTelemetry instance instead of using the GlobalOpenTelemetry, you need to register the factory on your endpoint manually:
Using Micrometer (vanilla SDK)
Add the dependency:ObservationRegistry instance and register the factory: