Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMetrics ¶ added in v0.5.2
func RegisterMetrics() error
RegisterMetrics enables prometheus metrics for OpenTelemetry.
Types ¶
type OpenTelemetryAutorestTracer ¶
type OpenTelemetryAutorestTracer struct {
// contains filtered or unexported fields
}
OpenTelemetryAutorestTracer implements the tracing interface for AutoRest.
func NewOpenTelemetryAutorestTracer ¶
func NewOpenTelemetryAutorestTracer(tracer trace.Tracer) *OpenTelemetryAutorestTracer
NewOpenTelemetryAutorestTracer creates a new Autorest tracing adapter for OpenTelemetry.
func (*OpenTelemetryAutorestTracer) EndSpan ¶
func (ot *OpenTelemetryAutorestTracer) EndSpan(ctx context.Context, httpStatusCode int, err error)
EndSpan ends the current context span. It ignores the httpsStatusCode and error since they are recorded by the otelhttp.Transport.
func (*OpenTelemetryAutorestTracer) NewTransport ¶
func (ot *OpenTelemetryAutorestTracer) NewTransport(base *http.Transport) http.RoundTripper
NewTransport creates a new http.RoundTripper which will augment the base http.RoundTripper with OpenTelemetry tracing and metrics.
Click to show internal directories.
Click to hide internal directories.