-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Idea
To facilitate better observability and bridge the gap between background job execution and distributed tracing, I propose to add more context to the River job's metadata.
The goal is to allow otelriver to automatically inject the TraceID and SpanID into the River job's metadata field. This ensures that when viewing a job in the River UI, the operator can immediately see the associated Trace ID and navigate to their tracing backend.
Proposed Changes:
- Add a new configuration option PersistTraceContextInMetadata bool to MiddlewareConfig.
- Update InsertMany to inject the current TraceID and SpanID into the Metadata map of each JobInsertParams.
- Update Work to ensure the metadata is updated if the context was started within the worker.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request