Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Context ¶
func Context(sc jaeger.SpanContext) zapcore.Field
Context creates a zap.Field which marshals all information contained in a jaeger context
func NewLoggingTracer ¶
NewLoggingTracer creates a new tracer that logs all span interactions
func Span ¶
func Span(s opentracing.Span) zapcore.Field
Span creates a zap.Field that marshals all information contained in a jaeger span
func Trace ¶
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.