Skip to content

Commit e5b95b2

Browse files
committed
add fix
1 parent 7951312 commit e5b95b2

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ jobs:
6060

6161
- name: Run declarative-configuration
6262
working-directory: declarative-configuration
63-
run: ../gradlew run
63+
run: |
64+
export OTEL_EXPERIMENTAL_CONFIG_FILE=$(pwd)/otel-sdk-config.yaml
65+
../gradlew run
6466
6567
# this is not a required check to avoid blocking pull requests if external links break
6668
markdown-link-check:
@@ -76,4 +78,4 @@ jobs:
7678
- if: >
7779
needs.build.result != 'success' ||
7880
needs.test-declarative-configuration-run.result != 'success'
79-
run: exit 1
81+
run: exit 1

declarative-configuration/otel-sdk-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# See https://github.com/open-telemetry/opentelemetry-configuration for details on schema and examples
22

3-
file_format: "0.3"
3+
file_format: "1.0-rc.1"
44

55
resource:
66
attributes:
77
- name: service.name
88
value: file-configuration-example
99

10+
propagator:
11+
composite:
12+
- tracecontext:
13+
- baggage:
14+
1015
tracer_provider:
1116
processors:
1217
- batch:
@@ -23,9 +28,4 @@ meter_provider:
2328
instrument_type: histogram
2429
stream:
2530
aggregation:
26-
drop:
27-
28-
propagator:
29-
composite:
30-
- tracecontext
31-
- baggage
31+
drop:

0 commit comments

Comments
 (0)