restatedev / sdk-typescript

Restate SDK for JavaScript/Typescript
MIT License
43 stars 6 forks source link

Attach Otel context in the handler execution context #293

Closed slinkydeveloper closed 6 days ago

slinkydeveloper commented 3 months ago

see https://github.com/restatedev/restate/issues/1279

slinkydeveloper commented 2 months ago

Java implementation: https://github.com/restatedev/sdk-java/commit/a3c429152ddac3dd9d25bde0c5b52c0188a967e3

In Java we expose it in two ways:

igalshilman commented 1 week ago

I’ll consider it close for now, perhaps we need to follow up with an example of how to setup OTEL within your handler, the trace context is accessible via ctx.request().attemptHeaders