Documentation ¶
Overview ¶
package tr - Zero Log Tracer represent interface for OpenTracer span logger with zero-log tool set.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { jaeger.Logger BG() *zerolog.Logger LogFields(level zerolog.Level, fields ...log.Field) }
func NewZeroTracer ¶
type ZT ¶
type ZT struct { *Z // contains filtered or unexported fields }
func (*ZT) LogFields ¶
LogFields is an efficient and type-checked way to record key:value logging data about a Span, though the programming interface is a little more verbose than LogKV(). Here's an example:
span.LogFields( log.String("event", "soft error"), log.String("type", "cache timeout"), log.Int("waited.millis", 1500))
Also see Span.FinishWithOptions() and FinishOptions.BulkLogData.
Click to show internal directories.
Click to hide internal directories.