package
0.0.0-20240707112111-9cf347bf49e2
Repository: https://github.com/facebookincubator/go-belt.git
Documentation: pkg.go.dev
# Functions
New returns a new instance of TracerImpl (a tracer.Tracer implementation based on a given logger.Logger).
SpanFromLogEntry converts a logger Entry to a Span.
# Constants
FieldPropertyDuration is a field.Property which marks the field as a duration.
FieldPropertyEvent is a field.Property which marks the field as the timestamp of an event.
FieldPropertyName is a field.Property which marks the field as the span name.
FieldPropertyParent is a field.Property which marks the field as the parent span.
FieldPropertyStartTS is a field.Property which marks the field as a start timestamp.
# Variables
Default is the overridable function which returns a logger-based Tracer with the default configuration.
FieldNameDuration is the field name for the duration.
FieldNameName is the field name for the span name.
FieldNameParent is the field name for the parent span.
FieldNamePrefixEvent is the field name prefix for events reported through Annotate method.
FieldNameStartTS is the field name for the span start timestamp.
# Structs
Event is an unit of information added through method tracer.Span.Annotate.
SpanImpl is the implementation of tracer.Span.
TracerImpl is the implementation of tracer.Tracer based on a given logger.Logger.