Documentation
¶
Overview ¶
Package o11yutils offers observability utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustOtelResource ¶
MustOtelResource is OtelResource for callers that have nowhere to put an error. Prefer OtelResource: everything in this repo that builds a resource is a constructor with an error in its signature.
func OtelResource ¶
OtelResource assembles the OpenTelemetry resource describing this process.
Every caller is a constructor that already returns an error, which is why this returns one too: resource detection reads the environment and the host, and a detector that fails is a misconfiguration the caller can report like any other, not grounds for taking the process down from inside a constructor.
Types ¶
This section is empty.