tele

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tracer

func Tracer() trace.Tracer

Tracer returns an OpenTelemetry Tracer implementation to be used to create spans. Use this implementation instead of the "raw" one that you could otherwise get from calling `otel.Tracer("whatever")`.

Example usage:

ctx, span := tele.Tracer().Start(ctx, "myFunction")
defer span.End()
// use the span and context here

Types

type CorrID added in v0.5.2

type CorrID string

CorrID is a correlation ID that the cluster API provider sends with all API requests to Azure. Do not create one of these manually. Instead, use the CtxWithCorrelationID function to create one of these within a context.Context.

func CorrIDFromCtx added in v0.5.2

func CorrIDFromCtx(ctx context.Context) (CorrID, bool)

CorrIDFromCtx attempts to fetch a correlation ID from the given context.Context. If none exists, returns an empty CorrID and false. Otherwise returns the CorrID value and true.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL