Versions in this module Expand all Collapse all v0 v0.14.0 Mar 22, 2025 Changes in this version + func ConfigMapName() string + func RestfulFilter(serviceName string, ignorePaths ...string) restful.FilterFunction + func SetupDynamicPublishing(tracing *Tracing, configMapWatcher configmap.DefaultingWatcher) error + func WrapTransport(rt http.RoundTripper) http.RoundTripper + func WrapTransportForRestyClient(client *resty.Client) + type Config struct + Backend ExporterBackend + Custom string + Enable bool + Jaeger JaegerConfig + SamplingRatio float64 + Zipkin ZipkinConfig + type ExporterBackend string + var ExporterBackendCustom ExporterBackend = "custom" + var ExporterBackendJaeger ExporterBackend = "jaeger" + var ExporterBackendZipkin ExporterBackend = "zipkin" + type ExporterConstructor func(config *Config) (trace.SpanExporter, error) + type JaegerConfig struct + AttemptReconnectInterval time.Duration + DisableAttemptReconnecting bool + Host string + MaxPacketSize int + Port string + type ResourceConstructor func(config *Config) (*resource.Resource, error) + type TraceOption func(tracing *Tracing) + func WithExporter(f ExporterConstructor) TraceOption + func WithResource(f ResourceConstructor) TraceOption + func WithServiceName(name string) TraceOption + func WithTextMapPropagator(ops ...propagation.TextMapPropagator) TraceOption + func WithTraceProvider(f TraceProviderConstructor) TraceOption + func WithTracerProviderOption(ops ...trace.TracerProviderOption) TraceOption + type TraceProviderConstructor func(config *Config) (*trace.TracerProvider, error) + type Tracing struct + ConfigMapName string + Propagators []propagation.TextMapPropagator + ServiceName string + func NewTracing(logger *zap.SugaredLogger, ops ...TraceOption) *Tracing + func (t *Tracing) ApplyConfig(cfg *Config) + type Transport struct + func (t *Transport) CancelRequest(req *http.Request) + func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) + type ZipkinConfig struct + Url string