tracer

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package tracer initializes and exposes the global tracer exporter used in the service and across integrations. This is for internal purposes only. End-users only need access to the trace package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exporter

func Exporter() *otlptrace.Exporter

Exporter returns the global tracer exporter used in the service.

func FromContextToBaggageMembers

func FromContextToBaggageMembers(ctx context.Context) []baggage.Member

FromContextToBaggageMembers tries to extract an event from the context to add each field as a baggage member to the trace.

func FromContextToSpanAttributes

func FromContextToSpanAttributes(ctx context.Context) []attribute.KeyValue

FromContextToSpanAttributes tries to extract an event from the context to add each field as an attribute to the current span.

func Tracer

func Tracer() trace.Tracer

Tracer returns the global tracer used in the service.

Types

This section is empty.

Jump to

Keyboard shortcuts

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