Documentation
¶
Index ¶
- Constants
- func New(tree config.Tree, o ...tracing.TracerOption) (tracing.Tracer, error)
- type AnalyticsConfig
- type Config
- type Logger
- type ServiceConfig
- type Tracer
- func (t *Tracer) Close() error
- func (t *Tracer) Extract(format interface{}, carrier interface{}) (opentracing.SpanContext, error)
- func (t *Tracer) Inject(sm opentracing.SpanContext, format interface{}, carrier interface{}) error
- func (t *Tracer) StartSpan(operationName string, opts ...opentracing.StartSpanOption) opentracing.Span
Constants ¶
View Source
const Name = "datadog"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AnalyticsConfig ¶
type Config ¶
type Config struct {
// AgentAddr sets address where the agent is located. The default is
// localhost:8126. It should contain both host and port.
AgentAddr string `toml:"agent_addr"`
// Service-related configuration, such as name and version
Service ServiceConfig `toml:"service"`
// DataDog Analytics-related configuration
Analytics AnalyticsConfig `toml:"analytics"`
// Tags sets a key/value pair which will be set as a tag on all spans
// created by tracer.
Tags map[string]string `toml:"tags"`
}
Config configures DataDog Tracer
type ServiceConfig ¶
type Tracer ¶
type Tracer struct {
Tracer opentracing.Tracer
}
func (*Tracer) Extract ¶
func (t *Tracer) Extract(format interface{}, carrier interface{}) (opentracing.SpanContext, error)
func (*Tracer) Inject ¶
func (t *Tracer) Inject(sm opentracing.SpanContext, format interface{}, carrier interface{}) error
func (*Tracer) StartSpan ¶
func (t *Tracer) StartSpan(operationName string, opts ...opentracing.StartSpanOption) opentracing.Span
Click to show internal directories.
Click to hide internal directories.