tracing

package
v0.0.0-...-9edbc40 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOtelProvider

func GetOtelProvider(kind, name string, conf interface{}) (trace.TracerProvider, error)

func InitFromEnv

func InitFromEnv(service string) (opentracing.Tracer, io.Closer)

InitFromEnv returns an instance of Jaeger Tracer that read from env Env example in GKE deployment

  • name: JAEGER_AGENT_HOST valueFrom: fieldRef: fieldPath: status.hostIP
  • name: JAEGER_SERVICE_NAME value: service_name
  • name: JAEGER_SAMPLER_PARAM value: "1"
  • name: JAEGER_SAMPLER_TYPE value: const

func InitLocal

func InitLocal(service string) (opentracing.Tracer, io.Closer)

InitLocal returns an instance of Jaeger Tracer that samples 100% of traces and logs all spans to stdout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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