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" )
View Source
const ConfigSchemaID = "ory://tracing-config"
Variables ¶
View Source
var ConfigSchema string
Functions ¶
func AddConfigSchema ¶ added in v0.0.269
AddConfigSchema adds the tracing schema to the compiler. The interface is specified instead of `jsonschema.Compiler` to allow the use of any jsonschema library fork or version.
func RoundTripper ¶ added in v0.0.337
func RoundTripper(tracer opentracing.Tracer, delegate http.RoundTripper) http.RoundTripper
Types ¶
type Config ¶ added in v0.0.166
type Config struct { ServiceName string `json:"service_name"` Provider string `json:"provider"` Providers *ProvidersConfig `json:"providers"` }
type JaegerConfig ¶
type JaegerConfig struct { LocalAgentAddress string `json:"local_agent_address"` Sampling *JaegerSampling `json:"sampling"` Propagation string `json:"propagation"` MaxTagValueLength int `json:"max_tag_value_length"` }
JaegerConfig encapsulates jaeger's configuration.
type JaegerSampling ¶ added in v0.0.269
type ProvidersConfig ¶ added in v0.0.269
type ProvidersConfig struct { Jaeger *JaegerConfig `json:"jaeger"` Zipkin *ZipkinConfig `json:"zipkin"` }
type RoundTripperFunc ¶ added in v0.0.337
The RoundTripperFunc type is an adapter to allow the use of ordinary functions as RoundTrippers. If f is a function with the appropriate signature, RountTripperFunc(f) is a RoundTripper that calls f.
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 `json:"server_url"`
}
ZipkinConfig encapsulates zipkin's configuration.
Click to show internal directories.
Click to hide internal directories.