 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package tracing provides helpers for dealing with Open Tracing and Distributed Tracing.
Index ¶
Constants ¶
      View Source
      
  
const ( // BCryptHashOpName is the operation name for bcrypt hashing operations. BCryptHashOpName = "bcrypt.hash" // BCryptCompareOpName is the operation name for bcrypt comparation operations. BCryptCompareOpName = "bcrypt.compare" // BCryptWorkFactorTagName is the operation name for bcrypt workfactor settings. BCryptWorkFactorTagName = "bcrypt.workfactor" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.0.166
type Config struct {
	ServiceName string
	Provider    string
	Jaeger      *JaegerConfig
	Zipkin      *ZipkinConfig
}
    type JaegerConfig ¶
type JaegerConfig struct {
	LocalAgentHostPort string
	SamplerType        string
	SamplerValue       float64
	SamplerServerURL   string
	Propagation        string
}
    JaegerConfig encapsulates jaeger's configuration.
type TracedBCrypt ¶
type TracedBCrypt struct {
	WorkFactor int
}
    TracedBCrypt implements the Hasher interface.
type Tracer ¶
type Tracer struct {
	Config *Config
	// contains filtered or unexported fields
}
    Tracer encapsulates tracing abilities.
func (*Tracer) ServeHTTP ¶
func (t *Tracer) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
type ZipkinConfig ¶ added in v0.0.130
type ZipkinConfig struct {
	ServerURL string
}
    ZipkinConfig encapsulates zipkin's configuration.
 Click to show internal directories. 
   Click to hide internal directories.