WithInstrumentation sets the Instrumentation used for tracing and metrics propagation (e.g. OpenTelemetry).
(i elastictransport.Instrumentation)
| 156 | // WithInstrumentation sets the Instrumentation used for tracing and metrics |
| 157 | // propagation (e.g. OpenTelemetry). |
| 158 | func 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. |
| 163 | func WithLogger(l elastictransport.Logger) Option { |