Documentation ¶
Index ¶
- type CustomTracer
- type Option
- func SetCollectorHost(collectorHost string) Option
- func SetIsInKubernetes(isInKubernetes bool) Option
- func SetLogger(logger *gologger.CustomLogger) Option
- func SetOtelExporter(exporter *otlptrace.Exporter) Option
- func SetPropagator(propagator propagation.TextMapPropagator) Option
- func SetResource(resource *resource.Resource) Option
- func SetSampler(sampler trace.Sampler) Option
- func SetServiceName(serviceName string) Option
- func SetTracingContext(ctx context.Context) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomTracer ¶
type CustomTracer struct {
// contains filtered or unexported fields
}
func NewCustomTracer ¶
func NewCustomTracer(traceOptions ...Option) *CustomTracer
func (*CustomTracer) GetTextMapPropagator ¶
func (c *CustomTracer) GetTextMapPropagator() propagation.TextMapPropagator
func (*CustomTracer) GetTracerProvider ¶
func (c *CustomTracer) GetTracerProvider() *trace.TracerProvider
func (*CustomTracer) Shutdown ¶
func (t *CustomTracer) Shutdown()
type Option ¶
type Option func(t *CustomTracer)
func SetCollectorHost ¶
func SetIsInKubernetes ¶
func SetLogger ¶
func SetLogger(logger *gologger.CustomLogger) Option
func SetOtelExporter ¶
func SetPropagator ¶
func SetPropagator(propagator propagation.TextMapPropagator) Option
func SetResource ¶
func SetSampler ¶
func SetServiceName ¶
func SetTracingContext ¶
Click to show internal directories.
Click to hide internal directories.