Documentation ¶
Index ¶
Constants ¶
View Source
const ExternalConfigName = "tracing"
ExternalConfigName is the external config name of tracing.
Variables ¶
This section is empty.
Functions ¶
func CustomTracer ¶
func CustomTracer(tracer opentracing.Tracer) nirvana.Configurer
CustomTracer returns a configurer to set custom tracer.
func DefaultTracer ¶
func DefaultTracer(serviceName string, agentHostPort string) nirvana.Configurer
DefaultTracer returns a configurer to create default tracer by service and port.
Types ¶
type Option ¶
type Option struct { // ServiceName is the trace service name ServiceName string // AgentHostPort instructs reporter to send spans to jaeger-agent at this address AgentHostPort string }
Option contains basic configurations of tracing.
Click to show internal directories.
Click to hide internal directories.