Skip to content

Commit

Permalink
Update sample-job.yml
Browse files Browse the repository at this point in the history
Uniformly call /usr/local/bin/app
  • Loading branch information
MrAlias committed Dec 9, 2024
1 parent 5a6b8e7 commit 7b83aa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e/k8s/sample-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ spec:
imagePullPolicy: IfNotPresent
command: ["/bin/sh", "-c"]
# send SIGTERM to otel-go-instrumentation once the sample app has generated data so the job completes.
args: ["(/sample-app/start.sh || /sample-app/main) && kill -TERM $(pidof otel-go-instrumentation)"]
args: ["/usr/local/bin/app & kill -TERM $(pidof otel-go-instrumentation)"]
- name: auto-instrumentation
image: otel-go-instrumentation
imagePullPolicy: IfNotPresent
command: ["/otel-go-instrumentation", "-global-impl", "-log-level=debug"]
env:
- name: OTEL_GO_AUTO_TARGET_EXE
value: /sample-app/main
value: /usr/local/bin/app
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: "http://test-opentelemetry-collector:4318"
- name: OTEL_SERVICE_NAME
Expand Down

0 comments on commit 7b83aa3

Please sign in to comment.