MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / HTTPRoundTripper

Method HTTPRoundTripper

api/pkg/di/container.go:995–1002  ·  view source on GitHub ↗

HTTPRoundTripper creates an open telemetry http.RoundTripper

(name string)

Source from the content-addressed store, hash-verified

993
994// HTTPRoundTripper creates an open telemetry http.RoundTripper
995func (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
1005func (container *Container) HTTPRoundTripperWithoutRetry(name string) http.RoundTripper {

Callers 1

HTTPClientMethod · 0.95

Calls 2

RetryHTTPRoundTripperMethod · 0.95
DebugMethod · 0.65

Tested by

no test coverage detected