datadog

package module
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SpanId     = "dd.span_id"
	TraceId    = "dd.trace_id"
	ServiceKey = "dd.service"
	EnvKey     = "dd.env"
	VersionKey = "dd.version"
)

Variables

This section is empty.

Functions

func Env

func Env(env string) tracelog.Option

func New

func New() func(ctx context.Context, req *http.Request) tracing.Tracing

func Setup

func Setup(opt ...tracelog.Option)

func Version

func Version(version string) tracelog.Option

Types

type TracingContext

type TracingContext struct {
	Path      string
	ClientIP  string
	RequestID string
	Service   string
	Env       string
	Version   string
}

func Context

func Context(ctx context.Context) *TracingContext

func (*TracingContext) Dump

func (tc *TracingContext) Dump(ctx context.Context, log *zerolog.Event) *zerolog.Event

func (*TracingContext) WithTrace

func (tc *TracingContext) WithTrace(ctx context.Context, event *zerolog.Event) *zerolog.Event

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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