trace

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Trace.Id
	TagTraceId = "Trace-Id"

	// The software package, framework, library, or module that generated the associated Span.
	// E.g., "grpc", "django", "JDBI".
	// type string
	TagComponent = "component"

	// HTTP method of the request for the associated Span. E.g., "GET", "POST"
	// type string
	TagHTTPMethod = "http.method"

	// URL of the request being handled in this segment of the trace, in standard URI format.
	// E.g., "https://domain.net/path/to?resource=here"
	// type string
	TagHTTPURL = "http.url"

	TagHTTPRaw = "http.raw"

	TagHTTPBody = "http.body"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServiceName string                `json:"service_name" yaml:"service_name" toml:"service_name"`
	Endpoint    string                `json:"endpoint" yaml:"endpoint" toml:"endpoint"`
	TraceOpts   []jaeger.TracerOption `json:"trace_opts" yaml:"trace_opts" toml:"trace_opts"`
}

type Tracer

type Tracer struct {
	ServiceName string
	Trace       opentracing.Tracer
	// contains filtered or unexported fields
}

func NewTracer

func NewTracer(c *Config) (trace *Tracer)

func (*Tracer) Close

func (t *Tracer) Close()

func (*Tracer) GinTrace

func (t *Tracer) GinTrace() gin.HandlerFunc

Jump to

Keyboard shortcuts

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