Documentation
¶
Overview ¶
Package otel provides OpenTelemetry instrumentation utilities for the registry server.
Index ¶
Constants ¶
const ( AttrRegistryName = attribute.Key("registry.name") AttrRegistryType = attribute.Key("registry.type") AttrServerName = attribute.Key("server.name") AttrServerVersion = attribute.Key("server.version") AttrPageSize = attribute.Key("pagination.limit") AttrResultCount = attribute.Key("result.count") AttrHasCursor = attribute.Key("pagination.has_cursor") )
Common attribute keys for business context used across the application. Using shared keys ensures consistent attribute naming in traces.
Variables ¶
This section is empty.
Functions ¶
func RecordError ¶
RecordError records an error on a span and sets the span status to error. It safely handles nil spans and nil errors. Note: The status description is intentionally generic to prevent sensitive information (e.g., SQL queries, connection strings) from appearing in trace status. The full error details are still available via span events for debugging.
Types ¶
This section is empty.