Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 27 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,40 @@ jobs:

- run: java -cp sdk-usage/build/libs/opentelemetry-examples-sdk-usage-0.1.0-SNAPSHOT-all.jar io.opentelemetry.sdk.example.ConfigureSpanProcessorExample

test-declarative-configuration-run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Set up JDK for running Gradle
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
with:
distribution: temurin
java-version: 17

- name: Set up gradle
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
with:
cache-read-only: ${{ github.event_name == 'pull_request' }}

- name: Run declarative-configuration
working-directory: declarative-configuration
run: |
export OTEL_EXPERIMENTAL_CONFIG_FILE=$(pwd)/otel-sdk-config.yaml
../gradlew run

# this is not a required check to avoid blocking pull requests if external links break
markdown-link-check:
uses: ./.github/workflows/reusable-markdown-link-check.yml

required-status-check:
needs:
- build
- test-declarative-configuration-run
runs-on: ubuntu-latest
if: always()
steps:
- if: needs.build.result != 'success'
run: exit 1
- if: >
needs.build.result != 'success' ||
needs.test-declarative-configuration-run.result != 'success'
run: exit 1
14 changes: 7 additions & 7 deletions declarative-configuration/otel-sdk-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
# See https://github.com/open-telemetry/opentelemetry-configuration for details on schema and examples

file_format: "0.3"
file_format: "1.0-rc.1"

resource:
attributes:
- name: service.name
value: file-configuration-example

propagator:
composite:
- tracecontext:
- baggage:

tracer_provider:
processors:
- batch:
Expand All @@ -23,9 +28,4 @@ meter_provider:
instrument_type: histogram
stream:
aggregation:
drop:

propagator:
composite:
- tracecontext
- baggage
drop:
Loading