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
3 changes: 3 additions & 0 deletions .lychee.toml → .github/config/lychee.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Lychee configuration file
# See https://lychee.cli.rs/guides/config/

timeout = 30
retry_wait_time = 5
max_retries = 6
Expand Down
16 changes: 3 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,9 @@ on:

jobs:
check-links:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6.0.2

- name: Check all links in *.md files
id: lychee
uses: lycheeverse/lychee-action@v2.8.0
with:
lycheeVersion: v0.18.1
args: >-
-v -n "*.md" "**/*.md"
--config .lychee.toml
--github-token ${{ github.token }}
# release branches are excluded
if: "!startsWith(github.ref_name, 'release/')"
uses: ./.github/workflows/reusable-link-check.yml

build:
runs-on: ubuntu-24.04
Expand Down
16 changes: 3 additions & 13 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,9 @@ on:

jobs:
check-links:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6.0.2

- name: Check all links in *.md files
id: lychee
uses: lycheeverse/lychee-action@v2.8.0
with:
lycheeVersion: v0.18.1
args: >-
-v -n "*.md" "**/*.md"
--config .lychee.toml
--github-token ${{ github.token }}
# release branches are excluded
if: "!startsWith(github.ref_name, 'release/')"
uses: ./.github/workflows/reusable-link-check.yml

build:
runs-on: ubuntu-24.04
Expand Down
15 changes: 3 additions & 12 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,9 @@ on:

jobs:
check-links:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6.0.2

- name: Check all links in *.md files
id: lychee
uses: lycheeverse/lychee-action@v2.8.0
with:
lycheeVersion: v0.18.1
args: >-
-v -n "*.md" "**/*.md"
--config .lychee.toml
# release branches are excluded
if: "!startsWith(github.ref_name, 'release/')"
uses: ./.github/workflows/reusable-link-check.yml

build:
runs-on: ubuntu-24.04
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/reusable-link-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Reusable - Link check

on:
workflow_call:

permissions:
contents: read

jobs:
link-check:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0 # needed for merge-base used in modified-files mode

- uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3.6.3

- name: Link check for pull requests
if: github.event_name == 'pull_request'
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
PR_HEAD_REPO: ${{ github.event.pull_request.head.repo.full_name }}
run: mise run lint:links

- name: Link check for pushes and scheduled workflows
if: github.event_name != 'pull_request'
env:
GITHUB_TOKEN: ${{ github.token }}
run: mise run lint:links --full
8 changes: 4 additions & 4 deletions docs/advanced-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ The Splunk Distribution of OpenTelemetry Java uses the OTLP traces exporter as t

## Trace propagation configuration

| System property | Environment variable | Default value | Support | Description |
|--------------------|----------------------|------------------------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `otel.propagators` | `OTEL_PROPAGATORS` | `tracecontext,baggage` | Stable | A comma-separated list of propagators that will be used. You can find the list of supported propagators [here](https://github.com/open-telemetry/opentelemetry-java/tree/main/sdk-extensions/autoconfigure#propagator). |
| System property | Environment variable | Default value | Support | Description |
|--------------------|----------------------|------------------------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `otel.propagators` | `OTEL_PROPAGATORS` | `tracecontext,baggage` | Stable | A comma-separated list of propagators that will be used. You can find the list of supported propagators [here](https://opentelemetry.io/docs/languages/java/configuration/#properties-general). |

If you wish to be compatible with older versions of the Splunk Distribution of OpenTelemetry Java (or the SignalFx
Tracing Java Agent) you can set the trace propagator to B3:
Expand Down Expand Up @@ -62,7 +62,7 @@ export OTEL_PROPAGATORS=b3multi
| `otel.traces.sampler` | `OTEL_TRACES_SAMPLER` | `always_on` | Stable | The sampler to use for tracing. |

Splunk Distribution of OpenTelemetry Java supports all standard samplers as provided by
[OpenTelemetry Java SDK Autoconfigure](https://github.com/open-telemetry/opentelemetry-java/tree/main/sdk-extensions/autoconfigure#sampler).
[OpenTelemetry Java SDK Autoconfigure](https://opentelemetry.io/docs/languages/java/configuration/#properties-traces).
In addition, the distribution adds the following samplers:

### `internal_root_off`
Expand Down
17 changes: 17 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[tools]
lychee = "0.23.0"

[settings]
# Only install tools explicitly defined in the [tools] section above
idiomatic_version_file_enable_tools = []

# Windows configuration for file-based tasks
# Based on: https://github.com/jdx/mise/discussions/4461
windows_executable_extensions = ["sh"]
windows_default_file_shell_args = "bash"
use_file_shell_for_executable_tasks = true

# Pick the tasks you need from flint (https://github.com/grafana/flint)
[tasks."lint:links"]
description = "Check for broken links in changed files + all local links"
file = "https://raw.githubusercontent.com/grafana/flint/0ac131d7832bd8964f6ca9e5af73207dca6a85ba/tasks/lint/links.sh" # v0.7.1
Loading