Skip to content

Commit 99c05ec

Browse files
authored
Merge branch 'main' into main
2 parents 1ea3b94 + 86e842c commit 99c05ec

File tree

153 files changed

+4297
-2057
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+4297
-2057
lines changed

.cspell.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
"Dwarnings",
4343
"EPYC",
4444
"flamegraph",
45+
"Gerring",
46+
"Grübel",
4547
"hasher",
4648
"Isobel",
4749
"jaegertracing",

.github/workflows/benchmark.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This workflow runs a Criterion benchmark on a PR and compares the results against the base branch.
2+
# It is triggered on a PR or a push to main.
3+
#
4+
# The workflow is gated on the presence of the "performance" label on the PR.
5+
#
6+
# The workflow runs on a self-hosted runner pool. We can't use the shared runners for this,
7+
# because they are only permitted to run on the default branch to preserve resources.
8+
#
9+
# In the future, we might like to consider using bencher.dev or the framework used by otel-golang here.
10+
on:
11+
pull_request:
12+
push:
13+
branches:
14+
- main
15+
name: benchmark pull requests
16+
jobs:
17+
runBenchmark:
18+
name: run benchmark
19+
permissions:
20+
pull-requests: write
21+
22+
# If we're running on a PR, use ubuntu-latest - a shared runner. We can't use the self-hosted
23+
# runners on arbitrary PRs, and we don't want to unleash that load on the pool anyway.
24+
# If we're running on main, use the OTEL self-hosted runner pool.
25+
26+
# TODO - temporarily move main to the shared workers, until we've resolved the instance setup issue
27+
# runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || 'self-hosted' }}
28+
runs-on: 'ubuntu-latest'
29+
if: ${{ (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'performance')) || github.event_name == 'push' }}
30+
env:
31+
# For PRs, compare against the base branch - e.g., 'main'.
32+
# For pushes to main, compare against the previous commit
33+
BRANCH_NAME: ${{ github.event_name == 'pull_request' && github.base_ref || github.event.before }}
34+
steps:
35+
- uses: actions/checkout@v4
36+
with:
37+
fetch-depth: 10 # Fetch current commit and its parent
38+
- uses: arduino/setup-protoc@v3
39+
with:
40+
repo-token: ${{ secrets.GITHUB_TOKEN }}
41+
- uses: dtolnay/rust-toolchain@master
42+
with:
43+
toolchain: stable
44+
- uses: boa-dev/criterion-compare-action@v3
45+
with:
46+
branchName: ${{ env.BRANCH_NAME }}

.github/workflows/ci.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,15 @@ jobs:
5858
submodules: true
5959
- uses: dtolnay/rust-toolchain@stable
6060
with:
61-
components: rustfmt
61+
components: rustfmt, clippy
62+
- uses: taiki-e/install-action@v2
63+
with:
64+
tool: cargo-hack
6265
- uses: arduino/setup-protoc@v3
6366
with:
6467
repo-token: ${{ secrets.GITHUB_TOKEN }}
65-
- uses: actions-rs/cargo@v1
66-
with:
67-
command: fmt
68-
args: --all -- --check
68+
- name: Format
69+
run: cargo fmt --all -- --check
6970
- name: Lint
7071
run: bash ./scripts/lint.sh
7172
external-types:
@@ -108,7 +109,7 @@ jobs:
108109
continue-on-error: true # Prevent sudden announcement of a new advisory from failing ci
109110
steps:
110111
- uses: actions/checkout@v4
111-
- uses: EmbarkStudios/cargo-deny-action@v1
112+
- uses: EmbarkStudios/cargo-deny-action@v2
112113
with:
113114
command: check advisories
114115
docs:
@@ -155,3 +156,18 @@ jobs:
155156
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
156157
with:
157158
fail_ci_if_error: true
159+
cargo-machete:
160+
continue-on-error: true
161+
runs-on: ubuntu-latest
162+
steps:
163+
- uses: actions/checkout@v4
164+
with:
165+
submodules: true
166+
- uses: dtolnay/rust-toolchain@master
167+
with:
168+
toolchain: stable
169+
- uses: taiki-e/install-action@v2
170+
with:
171+
tool: cargo-machete
172+
- name: cargo machete
173+
run: cargo machete

.github/workflows/fossa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616

17-
- uses: fossas/fossa-action@93a52ecf7c3ac7eb40f5de77fd69b1a19524de94 # v1.5.0
17+
- uses: fossas/fossa-action@c0a7d013f84c8ee5e910593186598625513cc1e4 # v1.6.0
1818
with:
1919
api-key: ${{secrets.FOSSA_API_KEY}}
2020
team: OpenTelemetry
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: OSSF Scorecard
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
schedule:
8+
- cron: "50 3 * * 0" # once a week
9+
workflow_dispatch:
10+
11+
permissions: read-all
12+
13+
jobs:
14+
analysis:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
# Needed for Code scanning upload
18+
security-events: write
19+
# Needed for GitHub OIDC token if publish_results is true
20+
id-token: write
21+
steps:
22+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
with:
24+
persist-credentials: false
25+
26+
- uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
27+
with:
28+
results_file: results.sarif
29+
results_format: sarif
30+
publish_results: true
31+
32+
# Upload the results as artifacts (optional). Commenting out will disable
33+
# uploads of run results in SARIF format to the repository Actions tab.
34+
# https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts
35+
- name: "Upload artifact"
36+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
37+
with:
38+
name: SARIF file
39+
path: results.sarif
40+
retention-days: 5
41+
42+
# Upload the results to GitHub's code scanning dashboard (optional).
43+
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
44+
- name: "Upload to code-scanning"
45+
uses: github/codeql-action/upload-sarif@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
46+
with:
47+
sarif_file: results.sarif

.github/workflows/pr_criterion.yaml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[submodule "opentelemetry-proto/src/proto/opentelemetry-proto"]
22
path = opentelemetry-proto/src/proto/opentelemetry-proto
33
url = https://github.com/open-telemetry/opentelemetry-proto
4-
branch = tags/v1.0.0
4+
branch = tags/v1.5.0

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ It's important to regularly review and remove the `otel_unstable` flag from the
172172

173173
The potential features include:
174174

175-
- Stable and non-experimental features that compliant to specification, and have a feature flag to minimize compilation size. Example: feature flags for signals (like `logs`, `traces`, `metrics`) and runtimes (`rt-tokio`, `rt-tokio-current-thread`, `rt-async-std`).
175+
- Stable and non-experimental features that are compliant with the specification and have a feature flag to minimize compilation size. Example: feature flags for signals (like `logs`, `traces`, `metrics`) and runtimes (`rt-tokio`, `rt-tokio-current-thread`).
176176
- Stable and non-experimental features, although not part of the specification, are crucial for enhancing the tracing/log crate's functionality or boosting performance. These features are also subject to discussion and approval by the OpenTelemetry Rust Maintainers.
177177

178178
All such features should adhere to naming convention `<signal>_<feature_name>`

Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ exclude = ["opentelemetry-prometheus"]
1919
debug = 1
2020

2121
[workspace.dependencies]
22-
async-std = "1.13"
2322
async-trait = "0.1"
2423
bytes = "1"
2524
criterion = "0.5"
@@ -42,8 +41,8 @@ serde = { version = "1.0", default-features = false }
4241
serde_json = "1.0"
4342
temp-env = "0.3.6"
4443
thiserror = { version = "2", default-features = false }
45-
tonic = { version = "0.12.3", default-features = false }
46-
tonic-build = "0.12"
44+
tonic = { version = "0.13", default-features = false }
45+
tonic-build = "0.13"
4746
tokio = { version = "1", default-features = false }
4847
tokio-stream = "0.1"
4948
# Using `tracing 0.1.40` because 0.1.39 (which is yanked) introduces the ability to set event names in macros,
@@ -75,7 +74,7 @@ sysinfo = "0.32"
7574
tempfile = "3.3.0"
7675
testcontainers = "0.23.1"
7776
tracing-log = "0.2"
78-
tracing-opentelemetry = "0.29"
77+
tracing-opentelemetry = "0.30"
7978
typed-builder = "0.20"
8079
uuid = "1.3"
8180

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ documentation.
3131
| Signal/Component | Overall Status |
3232
| -------------------- | ------------------ |
3333
| Context | Beta |
34-
| Baggage | Beta |
34+
| Baggage | RC |
3535
| Propagators | Beta |
3636
| Logs-API | Stable* |
37-
| Logs-SDK | RC |
37+
| Logs-SDK | Stable |
3838
| Logs-OTLP Exporter | RC |
39-
| Logs-Appender-Tracing | RC |
39+
| Logs-Appender-Tracing | Stable |
4040
| Metrics-API | Stable |
4141
| Metrics-SDK | RC |
4242
| Metrics-OTLP Exporter | RC |
@@ -179,22 +179,23 @@ you're more than welcome to participate!
179179

180180
### Maintainers
181181

182-
* [Cijo Thomas](https://github.com/cijothomas)
182+
* [Cijo Thomas](https://github.com/cijothomas), Microsoft
183183
* [Harold Dost](https://github.com/hdost)
184-
* [Julian Tescher](https://github.com/jtescher)
185-
* [Lalit Kumar Bhasin](https://github.com/lalitb)
186-
* [Utkarsh Umesan Pillai](https://github.com/utpilla)
184+
* [Lalit Kumar Bhasin](https://github.com/lalitb), Microsoft
185+
* [Utkarsh Umesan Pillai](https://github.com/utpilla), Microsoft
187186
* [Zhongyang Wu](https://github.com/TommyCpp)
188187

189188
### Approvers
190189

191-
* [Shaun Cox](https://github.com/shaun-cox)
192-
* [Scott Gerring](https://github.com/scottgerring)
190+
* [Anton Grübel](https://github.com/gruebel), Baz
191+
* [Shaun Cox](https://github.com/shaun-cox), Microsoft
192+
* [Scott Gerring](https://github.com/scottgerring), Datadog
193193

194194
### Emeritus
195195

196196
* [Dirkjan Ochtman](https://github.com/djc)
197197
* [Jan Kühle](https://github.com/frigus02)
198+
* [Julian Tescher](https://github.com/jtescher)
198199
* [Isobel Redelmeier](https://github.com/iredelmeier)
199200
* [Mike Goldsmith](https://github.com/MikeGoldsmith)
200201

0 commit comments

Comments
 (0)