Skip to content

Commit 394c246

Browse files
committed
patch
1 parent 89d0fce commit 394c246

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

test/unittests/operator_customized_test.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,17 @@ tests:
2222
name: SPLUNK_PROFILER_MEMORY_ENABLED
2323
value: "true"
2424
- contains:
25-
path: spec.nodjs.env
25+
path: spec.nodejs.env
26+
content:
27+
name: OTEL_EXPORTER_OTLP_ENDPOINT
28+
value: "http://$(NODEJS_OTEL_AGENT):4318"
29+
- contains:
30+
path: spec.nodejs.env
31+
content:
32+
name: SPLUNK_PROFILER_ENABLED
33+
value: "false"
34+
- contains:
35+
path: spec.nodejs.env
2636
content:
2737
name: SPLUNK_PROFILER_MEMORY_ENABLED
2838
value: "false"

test/unittests/operator_default_test.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,43 @@ tests:
1111
- equal:
1212
path: spec.exporter.endpoint
1313
value: http://$(SPLUNK_OTEL_AGENT):4317
14+
- contains:
15+
path: spec.propagators
16+
content: tracecontext
17+
- contains:
18+
path: spec.propagators
19+
content: baggage
20+
- contains:
21+
path: spec.propagators
22+
content: b3
23+
- contains:
24+
path: spec.env
25+
content:
26+
name: SPLUNK_OTEL_AGENT
27+
valueFrom:
28+
fieldRef:
29+
apiVersion: v1
30+
fieldPath: status.hostIP
31+
- contains:
32+
path: spec.dotnet.env
33+
content:
34+
name: OTEL_DOTNET_AUTO_PLUGINS
35+
value: Splunk.OpenTelemetry.AutoInstrumentation.Plugin,Splunk.OpenTelemetry.AutoInstrumentation
36+
- contains:
37+
path: spec.dotnet.env
38+
content:
39+
name: OTEL_EXPORTER_OTLP_ENDPOINT
40+
value: http://$(SPLUNK_OTEL_AGENT):4318
41+
- contains:
42+
path: spec.env
43+
content:
44+
name: SPLUNK_OTEL_AGENT
45+
valueFrom:
46+
fieldRef:
47+
apiVersion: v1
48+
fieldPath: status.hostIP
49+
- contains:
50+
path: spec.java.env
51+
content:
52+
name: OTEL_EXPORTER_OTLP_ENDPOINT
53+
value: http://$(SPLUNK_OTEL_AGENT):4318

0 commit comments

Comments
 (0)