Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultTracerName = "cloud-provider-azure" DefaultMeterName = "cloud-provider-azure" )
Variables ¶
This section is empty.
Functions ¶
func DefaultMeter ¶
func DefaultTracer ¶
func SetGlobalProvider ¶
func SetGlobalProvider(p *Provider)
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) DefaultMeter ¶
DefaultMeter returns the default meter.
func (*Provider) MeterProvider ¶
func (p *Provider) MeterProvider() *sdkmetric.MeterProvider
MeterProvider returns the meter provider.
func (*Provider) MetricsHTTPHandler ¶
MetricsHTTPHandler returns an HTTP handler for local Prometheus metrics.
func (*Provider) TracerProvider ¶
func (p *Provider) TracerProvider() *sdktrace.TracerProvider
TracerProvider returns the tracer provider.
type ReconcileSpan ¶
type ReconcileSpan struct {
// contains filtered or unexported fields
}
ReconcileSpan is a helper for tracing reconcile operations.
func BeginReconcile ¶
func BeginReconcile(ctx context.Context, tracer apitrace.Tracer, name string, attributes ...attribute.KeyValue) (context.Context, *ReconcileSpan)
BeginReconcile starts a new ReconcileSpan and returns the context with the span.
func (*ReconcileSpan) Done ¶
func (c *ReconcileSpan) Done(ctx context.Context)
Done finishes the ReconcileSpan and records the latency.
func (*ReconcileSpan) Errored ¶
func (c *ReconcileSpan) Errored(ctx context.Context, err error)
Errored finishes the ReconcileSpan and records the error.
func (*ReconcileSpan) Inner ¶
func (c *ReconcileSpan) Inner() apitrace.Span
Inner returns the inner span.
Click to show internal directories.
Click to hide internal directories.