Skip to content

Commit 71394f8

Browse files
committed
add smoke test
1 parent 167095c commit 71394f8

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

smoke-tests/src/test/groovy/io/opentelemetry/smoketest/DeclarativeConfigurationSmokeTest.groovy

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ class DeclarativeConfigurationSmokeTest extends SmokeTest {
4848
Collection<ExportTraceServiceRequest> traces = waitForTraces()
4949

5050
then: "There is one trace"
51-
traces.size() > 0
51+
traces.size() == 1
52+
53+
then: "There is one span (io.opentelemetry.opentelemetry-instrumentation-annotations-1.16 " +
54+
"is not used, because instrumentation_mode=none)"
55+
getSpanStream(traces).count() == 1
5256

5357
then: "explicitly set attribute is present"
5458
hasResourceAttribute(traces, "service.name", "declarative-config-smoke-test")

smoke-tests/src/test/resources/declarative-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,10 @@ resource:
1919
attributes:
2020
- name: service.name
2121
value: declarative-config-smoke-test
22+
23+
instrumentation/development:
24+
java:
25+
agent:
26+
instrumentation_mode: none
27+
tomcat:
28+
enabled: true

0 commit comments

Comments
 (0)