Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Context ¶ added in v2.23.0
func Context(sc jaeger.SpanContext) zapcore.Field
Context creates a zap.Field which marshals all information contained in a jaeger context
func NewLoggingTracer ¶ added in v2.23.0
NewLoggingTracer creates a new tracer that logs all span interactions
func Span ¶ added in v2.23.0
func Span(s opentracing.Span) zapcore.Field
Span creates a zap.Field that marshals all information contained in a jaeger span
func Trace ¶ added in v2.3.0
Trace creates a field that extracts tracing information from a context and includes it under the "trace" key.
Because the opentracing APIs don't expose this information, the returned zap.Field is a no-op for contexts that don't contain a span or contain a non-Jaeger span. TODO: delegate to `spanContext`
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is an adapter from zap Logger to jaeger-lib Logger.
Directories ¶
Path | Synopsis |
---|---|
Package mock_opentracing is a generated GoMock package.
|
Package mock_opentracing is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.