diff --git a/otel-integration/k8s-helm/e2e-test/k8s/telemetrygen/deployment.yaml b/otel-integration/k8s-helm/e2e-test/k8s/telemetrygen/deployment.yaml index a3eb9f2a..3fdc770c 100644 --- a/otel-integration/k8s-helm/e2e-test/k8s/telemetrygen/deployment.yaml +++ b/otel-integration/k8s-helm/e2e-test/k8s/telemetrygen/deployment.yaml @@ -35,3 +35,6 @@ spec: - --otlp-attributes=service.name="test-{{ .DataType }}-deployment" args: - "--otlp-endpoint=$(K8S_NODE_IP):4317" +{{- if eq .DataType "traces" }} + - --status-code= +{{- end }} diff --git a/otel-integration/k8s-helm/e2e-test/testcommon/k8stest/k8s_telemetrygen.go b/otel-integration/k8s-helm/e2e-test/testcommon/k8stest/k8s_telemetrygen.go index b8e25795..c620d499 100644 --- a/otel-integration/k8s-helm/e2e-test/testcommon/k8stest/k8s_telemetrygen.go +++ b/otel-integration/k8s-helm/e2e-test/testcommon/k8stest/k8s_telemetrygen.go @@ -6,7 +6,6 @@ package k8stest // import "github.com/open-telemetry/opentelemetry-collector-con import ( "bytes" "context" - "fmt" "os" "path/filepath" "testing" @@ -42,7 +41,6 @@ func CreateTelemetryGenObjects(t *testing.T, client *K8sClient, createOpts *Tele tmpl := template.Must(template.New(manifestFile.Name()).ParseFiles(filepath.Join(createOpts.ManifestsDir, manifestFile.Name()))) for _, dataType := range createOpts.DataTypes { manifest := &bytes.Buffer{} - fmt.Println("Creating telemetrygen object for datatype: ", dataType, createOpts.OtlpEndpoint) require.NoError(t, tmpl.Execute(manifest, map[string]string{ "Name": "telemetrygen-" + createOpts.TestID, "DataType": dataType,