diff --git a/pkg/instrumentation/podmutator_test.go b/pkg/instrumentation/podmutator_test.go index d0f8636b02..247beec783 100644 --- a/pkg/instrumentation/podmutator_test.go +++ b/pkg/instrumentation/podmutator_test.go @@ -248,6 +248,10 @@ func TestMutatePod(t *testing.T) { Name: "OTEL_EXPORTER_OTLP_ENDPOINT", Value: "http://collector:12345", }, + { + Name: "OTEL_RESOURCE_ATTRIBUTES", + Value: "k8s.container.name=app,k8s.namespace.name=nodejs", + }, { Name: "NODE_OPTIONS", Value: nodeRequireArgument, diff --git a/pkg/instrumentation/sdk_test.go b/pkg/instrumentation/sdk_test.go index 3026ddbe49..3e37d18102 100644 --- a/pkg/instrumentation/sdk_test.go +++ b/pkg/instrumentation/sdk_test.go @@ -300,6 +300,10 @@ func TestInjectNodeJS(t *testing.T) { Name: "OTEL_EXPORTER_OTLP_ENDPOINT", Value: "https://collector:4318", }, + { + Name: "OTEL_RESOURCE_ATTRIBUTES", + Value: "k8s.container.name=app,k8s.namespace.name=", + }, { Name: "NODE_OPTIONS", Value: nodeRequireArgument,