Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddErrorEvent ¶
AddErrorEvent records the error to the current span.
Types ¶
type ShutdownMetrics ¶
ShutdownMetrics is a delegate that closes the metrics.
func SetupMetrics ¶
func SetupMetrics(service string) (ShutdownMetrics, error)
SetupMetrics sets the global OpenTelemetry MeterProvider configured to use the Prometheus exporter and will exposes it on port 2222.
type ShutdownTracing ¶
ShutdownTracing is a delegate that closes the tracing.
func SetupTracing ¶
func SetupTracing(service, url string) (ShutdownTracing, error)
SetupTracing sets the global OpenTelemetry TracerProvider configured to use the Jaeger exporter that will send spans to the provided url. The TracerProvider will also use a Resource configured with the information about the application.
Click to show internal directories.
Click to hide internal directories.