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

Method HTTPRoundTripperWithoutRetry

api/pkg/di/container.go:1005–1011  ·  view source on GitHub ↗

HTTPRoundTripperWithoutRetry creates an open telemetry http.RoundTripper without retry

(name string)

Source from the content-addressed store, hash-verified

1003
1004// HTTPRoundTripperWithoutRetry creates an open telemetry http.RoundTripper without retry
1005func (container *Container) HTTPRoundTripperWithoutRetry(name string) http.RoundTripper {
1006 container.logger.Debug(fmt.Sprintf("Debug: initializing %s %T", name, http.DefaultTransport))
1007 return otelroundtripper.New(
1008 otelroundtripper.WithName(name),
1009 otelroundtripper.WithMeter(otel.GetMeterProvider().Meter(container.projectID)),
1010 )
1011}
1012
1013// OtelResources generates default open telemetry resources
1014func (container *Container) OtelResources(version string, namespace string) *resource.Resource {

Callers 1

WebhookServiceMethod · 0.95

Calls 1

DebugMethod · 0.65

Tested by

no test coverage detected