HTTPRoundTripper creates an open telemetry http.RoundTripper
(name string)
| 993 | |
| 994 | // HTTPRoundTripper creates an open telemetry http.RoundTripper |
| 995 | func (container *Container) HTTPRoundTripper(name string) http.RoundTripper { |
| 996 | container.logger.Debug(fmt.Sprintf("Debug: initializing %s %T", name, http.DefaultTransport)) |
| 997 | return otelroundtripper.New( |
| 998 | otelroundtripper.WithName(name), |
| 999 | otelroundtripper.WithParent(container.RetryHTTPRoundTripper()), |
| 1000 | otelroundtripper.WithMeter(otel.GetMeterProvider().Meter(container.projectID)), |
| 1001 | ) |
| 1002 | } |
| 1003 | |
| 1004 | // HTTPRoundTripperWithoutRetry creates an open telemetry http.RoundTripper without retry |
| 1005 | func (container *Container) HTTPRoundTripperWithoutRetry(name string) http.RoundTripper { |
no test coverage detected