Open Telemetry
OpenTelemetry, or OTEL, is a standard for instrumenting applications to generate telemetry data. It provides a set of SDKs across multiple languages for producing telemetry data consumable by various observability tools. Events sent over Sailhouse can be traced using OpenTelemetry, utilising their propogation API.Although the examples below can be used in every invocation, setting up a global package/module which handles common orchestration logic like this will make it easier to modify this behaviour in the future.
Utilising metadata
Events on Sailhouse have an optional metadata object that can be used to add additional context to the event.- TypeScript
- Go
- TypeScript
- Go