Documentation
¶
Overview ¶
Package observability provides functionality for initializing OpenTelemetry's traces and metrics. It includes methods for setting up and shutting down the observability components.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SucceededAttribute is the attribute key-value pair for a succeeded operation. SucceededAttribute = attribute.String(statusAttribute, "succeeded") // FailedAttribute is the attribute key-value pair for a failed operation. FailedAttribute = attribute.String(statusAttribute, "failed") )
Functions ¶
func ClientAttribute ¶
ClientAttribute returns the attribute key-value pair for a client.
func ComponentAttribute ¶
ComponentAttribute returns the attribute key-value pair for a component.
func StatusAttribute ¶
StatusAttribute returns the attribute key-value pair for the status of an operation.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider represents the observability provider that includes the metric and trace providers.
Click to show internal directories.
Click to hide internal directories.