diff --git a/tracing/tracing.go b/tracing/tracing.go index d389879..e7c9c87 100644 --- a/tracing/tracing.go +++ b/tracing/tracing.go @@ -335,6 +335,13 @@ func newOLTPExporter(ctx context.Context, cfg *TracerConfig) (sdktrace.SpanExpor opts = append(opts, otlptracehttp.WithEndpointURL(cfg.EndpointURL)) } + opts = append(opts, otlptracehttp.WithRetry(otlptracehttp.RetryConfig{ + Enabled: true, + InitialInterval: 3 * time.Second, + MaxInterval: 60 * time.Second, + MaxElapsedTime: 5 * time.Minute, + })) + client = otlptracehttp.NewClient(opts...) default: return nil, errInvalidOTLPProtocol