Skip to content

Commit

Permalink
set status code flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantanjunming committed Nov 20, 2024
1 parent 95bcd64 commit 67ae7fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package k8stest // import "github.com/open-telemetry/opentelemetry-collector-con
import (
"bytes"
"context"
"fmt"
"os"
"path/filepath"
"testing"
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 67ae7fa

Please sign in to comment.