trace

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTestSpanExporter

func GetTestSpanExporter() *tracetest.InMemoryExporter

This function returns the initialized inMemoryExporter if it already exists. If not, it initializes an inMemoryExporter, a trace provider using the exporter, and bind otel package with the trace provider. It is designed to serve testing purpose solely. Note: only call this function once in each of the test packages, and assign the returned exporter to a package level variable

func InitProductionTraceProvider

func InitProductionTraceProvider(protocol string, serviceName string, serviceNamespace string, serviceInstanceId string, samplingRate float64) *sdktrace.TracerProvider

Types

This section is empty.

Jump to

Keyboard shortcuts

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