MCPcopy
hub / github.com/elastic/go-elasticsearch / WithInstrumentation

Function WithInstrumentation

options.go:158–160  ·  view source on GitHub ↗

WithInstrumentation sets the Instrumentation used for tracing and metrics propagation (e.g. OpenTelemetry).

(i elastictransport.Instrumentation)

Source from the content-addressed store, hash-verified

156// WithInstrumentation sets the Instrumentation used for tracing and metrics
157// propagation (e.g. OpenTelemetry).
158func WithInstrumentation(i elastictransport.Instrumentation) Option {
159 return withTransportOption(elastictransport.WithInstrumentation(i))
160}
161
162// WithLogger sets the Logger used to log request and response information.
163func WithLogger(l elastictransport.Logger) Option {

Callers 1

TestInstrumentationFunction · 0.85

Calls 1

withTransportOptionFunction · 0.85

Tested by 1

TestInstrumentationFunction · 0.68