datadog

package module
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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