trace

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Overview

Package trace provides open tracing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRemoteSpan

func NewRemoteSpan(tp trace.TracerProvider, tracerName string, spanName string, traceID string, spanID string) (trace.Span, error)

NewRemoteSpan creates a new span of OpenTelemetry from remote parent tracing.

func NewSpan

func NewSpan(tp trace.TracerProvider, tracerName string, spanName string, traceID string, spanID string) (trace.Span, error)

NewSpan creates a new span of OpenTelemetry.

func NewSpanWithAttrs

func NewSpanWithAttrs(tp trace.TracerProvider, tracerName string, spanName string, traceID string, spanID string, remote bool, attrs ...map[string]string) (trace.Span, error)

NewSpanWithAttrs creates a new span of OpenTelemetry with attributes.

func NewTracerProviderWithJaeger

func NewTracerProviderWithJaeger(service string) (*tracesdk.TracerProvider, func(ctx context.Context), error)

NewTracerProviderWithJaeger creates a new tracer provider with Jaeger.

Types

This section is empty.

Jump to

Keyboard shortcuts

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