We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c414808 commit 3b5c16bCopy full SHA for 3b5c16b
pkg/instrumentation/sdk.go
@@ -305,15 +305,6 @@ func (i *sdkInjector) injectCommonSDKConfig(ctx context.Context, otelinst v1alph
305
})
306
}
307
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
317
318
// Always retrieve the pod name from the Downward API. Ensure that the OTEL_RESOURCE_ATTRIBUTES_POD_NAME env exists.
319
container.Env = append(container.Env, corev1.EnvVar{
0 commit comments