File tree Expand file tree Collapse file tree 2 files changed +34
-9
lines changed
declarative-configuration Expand file tree Collapse file tree 2 files changed +34
-9
lines changed Original file line number Diff line number Diff line change @@ -42,15 +42,40 @@ jobs:
42
42
43
43
- run : java -cp sdk-usage/build/libs/opentelemetry-examples-sdk-usage-0.1.0-SNAPSHOT-all.jar io.opentelemetry.sdk.example.ConfigureSpanProcessorExample
44
44
45
+ test-declarative-configuration-run :
46
+ runs-on : ubuntu-latest
47
+ steps :
48
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
49
+
50
+ - name : Set up JDK for running Gradle
51
+ uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
52
+ with :
53
+ distribution : temurin
54
+ java-version : 17
55
+
56
+ - name : Set up gradle
57
+ uses : gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
58
+ with :
59
+ cache-read-only : ${{ github.event_name == 'pull_request' }}
60
+
61
+ - name : Run declarative-configuration
62
+ working-directory : declarative-configuration
63
+ run : |
64
+ export OTEL_EXPERIMENTAL_CONFIG_FILE=$(pwd)/otel-sdk-config.yaml
65
+ ../gradlew run
66
+
45
67
# this is not a required check to avoid blocking pull requests if external links break
46
68
markdown-link-check :
47
69
uses : ./.github/workflows/reusable-markdown-link-check.yml
48
70
49
71
required-status-check :
50
72
needs :
51
73
- build
74
+ - test-declarative-configuration-run
52
75
runs-on : ubuntu-latest
53
76
if : always()
54
77
steps :
55
- - if : needs.build.result != 'success'
56
- run : exit 1
78
+ - if : >
79
+ needs.build.result != 'success' ||
80
+ needs.test-declarative-configuration-run.result != 'success'
81
+ run: exit 1
Original file line number Diff line number Diff line change 1
1
# See https://github.com/open-telemetry/opentelemetry-configuration for details on schema and examples
2
2
3
- file_format : " 0.3 "
3
+ file_format : " 1.0-rc.1 "
4
4
5
5
resource :
6
6
attributes :
7
7
- name : service.name
8
8
value : file-configuration-example
9
9
10
+ propagator :
11
+ composite :
12
+ - tracecontext :
13
+ - baggage :
14
+
10
15
tracer_provider :
11
16
processors :
12
17
- batch :
@@ -23,9 +28,4 @@ meter_provider:
23
28
instrument_type : histogram
24
29
stream :
25
30
aggregation :
26
- drop :
27
-
28
- propagator :
29
- composite :
30
- - tracecontext
31
- - baggage
31
+ drop:
You can’t perform that action at this time.
0 commit comments