Documentation
¶
Index ¶
- func InitAgent(agent *Agent) *trace.TracerProvider
- type Agent
- type TelemetryOptions
- func WithCollectorOptions(opts ...otlptracehttp.Option) TelemetryOptions
- func WithOtelGrpcOptions(opts ...otlptracegrpc.Option) TelemetryOptions
- func WithOtelHttpOptions(opts ...otlptracehttp.Option) TelemetryOptions
- func WithTracerProviderOptions(opts ...trace.TracerProviderOption) TelemetryOptions
- func WithZipkinOptions(opts ...zipkin.Option) TelemetryOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitAgent ¶
func InitAgent(agent *Agent) *trace.TracerProvider
Types ¶
type Agent ¶
type Agent struct {
Name string `json:",optional"`
Endpoint string `json:",optional"`
SamplerMode string `json:",optional,default=never,options=ratio|always|never"`
Sampler float64 `json:",default=1.0"`
Batcher string `json:",default=jaeger,options=zipkin|jaeger|prometheus|otelgrpc|otelhttp|file"`
// contains filtered or unexported fields
}
type TelemetryOptions ¶
type TelemetryOptions func(*telemetryOptions)
func WithCollectorOptions ¶
func WithCollectorOptions(opts ...otlptracehttp.Option) TelemetryOptions
func WithOtelGrpcOptions ¶
func WithOtelGrpcOptions(opts ...otlptracegrpc.Option) TelemetryOptions
func WithOtelHttpOptions ¶
func WithOtelHttpOptions(opts ...otlptracehttp.Option) TelemetryOptions
func WithTracerProviderOptions ¶
func WithTracerProviderOptions(opts ...trace.TracerProviderOption) TelemetryOptions
func WithZipkinOptions ¶
func WithZipkinOptions(opts ...zipkin.Option) TelemetryOptions
Click to show internal directories.
Click to hide internal directories.