Skip to content

Commit 3b5c16b

Browse files
committed
Fix
Signed-off-by: Pavol Loffay <[email protected]>
1 parent c414808 commit 3b5c16b

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

pkg/instrumentation/sdk.go

-9
Original file line numberDiff line numberDiff line change
@@ -305,15 +305,6 @@ func (i *sdkInjector) injectCommonSDKConfig(ctx context.Context, otelinst v1alph
305305
})
306306
}
307307
configureExporter(otelinst.Spec.Exporter, &pod, container)
308-
if otelinst.Spec.Exporter.Endpoint != "" {
309-
idx = getIndexOfEnv(container.Env, constants.EnvOTELExporterOTLPEndpoint)
310-
if idx == -1 {
311-
container.Env = append(container.Env, corev1.EnvVar{
312-
Name: constants.EnvOTELExporterOTLPEndpoint,
313-
Value: otelinst.Spec.Endpoint,
314-
})
315-
}
316-
}
317308

318309
// Always retrieve the pod name from the Downward API. Ensure that the OTEL_RESOURCE_ATTRIBUTES_POD_NAME env exists.
319310
container.Env = append(container.Env, corev1.EnvVar{

0 commit comments

Comments
 (0)