Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// KeyArea is the key to represent the current flamingo area
KeyArea, _ = tag.NewKey("area")
)
Functions ¶
func URLPrefixSampler ¶
func URLPrefixSampler(whitelist, blacklist []string, allowParentTrace bool) func(*http.Request) trace.StartOptions
URLPrefixSampler creates a sampling getter for ochttp.Server.
If the whitelist is empty it is treated as allowed, otherwise checked first. If the blacklist is set it will disable sampling again. If takeParentDecision is set we allow the decision to be taken from incoming tracing, otherwise we enforce our decision
Types ¶
type ConfiguredURLPrefixSampler ¶
type ConfiguredURLPrefixSampler struct { Whitelist config.Slice `inject:"config:flamingo.opencensus.tracing.sampler.whitelist,optional"` Blacklist config.Slice `inject:"config:flamingo.opencensus.tracing.sampler.blacklist,optional"` AllowParentTrace bool `inject:"config:flamingo.opencensus.tracing.sampler.allowParentTrace,optional"` }
ConfiguredURLPrefixSampler constructs the prefix GetStartOptions getter with the default opencensus configuration
func (*ConfiguredURLPrefixSampler) GetStartOptions ¶
func (c *ConfiguredURLPrefixSampler) GetStartOptions() func(*http.Request) trace.StartOptions
GetStartOptions constructor for ochttp.Server
type Module ¶
type Module struct { Endpoint string `inject:"config:flamingo.opencensus.jaeger.endpoint"` ServiceName string `inject:"config:flamingo.opencensus.serviceName"` ServiceAddr string `inject:"config:flamingo.opencensus.serviceAddr"` JaegerEnable bool `inject:"config:flamingo.opencensus.jaeger.enable"` ZipkinEnable bool `inject:"config:flamingo.opencensus.zipkin.enable"` ZipkinEndpoint string `inject:"config:flamingo.opencensus.zipkin.endpoint"` }
Module registers the opencensus module which in turn enables jaeger & co
func (*Module) FlamingoLegacyConfigAlias ¶ added in v3.1.0
FlamingoLegacyConfigAlias maps legacy config to new
Click to show internal directories.
Click to hide internal directories.