Skip to content

Commit ed446f6

Browse files
authored
Merge branch 'open-telemetry:main' into main
2 parents e0c7daf + bf76c1f commit ed446f6

File tree

1,189 files changed

+40074
-10595
lines changed

Some content is hidden

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

1,189 files changed

+40074
-10595
lines changed

.fossa.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ targets:
7676
- type: gradle
7777
path: ./
7878
target: ':instrumentation:apache-shenyu-2.4:javaagent'
79+
- type: gradle
80+
path: ./
81+
target: ':instrumentation:avaje-jex-3.0:javaagent'
7982
- type: gradle
8083
path: ./
8184
target: ':instrumentation:c3p0-0.9:javaagent'
@@ -724,6 +727,9 @@ targets:
724727
- type: gradle
725728
path: ./
726729
target: ':instrumentation:opensearch:opensearch-rest-1.0:javaagent'
730+
- type: gradle
731+
path: ./
732+
target: ':instrumentation:opensearch:opensearch-rest-3.0:javaagent'
727733
- type: gradle
728734
path: ./
729735
target: ':instrumentation:opensearch:opensearch-rest-common:javaagent'
@@ -763,6 +769,9 @@ targets:
763769
- type: gradle
764770
path: ./
765771
target: ':instrumentation:opentelemetry-api:opentelemetry-api-1.47:javaagent'
772+
- type: gradle
773+
path: ./
774+
target: ':instrumentation:opentelemetry-api:opentelemetry-api-1.50:javaagent'
766775
- type: gradle
767776
path: ./
768777
target: ':instrumentation:pekko:pekko-actor-1.0:javaagent'
@@ -952,9 +961,6 @@ targets:
952961
- type: gradle
953962
path: ./
954963
target: ':instrumentation:vertx:vertx-rx-java-3.5:javaagent'
955-
- type: gradle
956-
path: ./
957-
target: ':instrumentation:vertx:vertx-sql-client-4.0:javaagent'
958964
- type: gradle
959965
path: ./
960966
target: ':instrumentation:vertx:vertx-web-3.0:javaagent'
@@ -1108,9 +1114,21 @@ targets:
11081114
- type: gradle
11091115
path: ./
11101116
target: ':instrumentation:vertx:vertx-http-client:vertx-http-client-4.0:javaagent'
1117+
- type: gradle
1118+
path: ./
1119+
target: ':instrumentation:vertx:vertx-http-client:vertx-http-client-5.0:javaagent'
11111120
- type: gradle
11121121
path: ./
11131122
target: ':instrumentation:vertx:vertx-http-client:vertx-http-client-common:javaagent'
1123+
- type: gradle
1124+
path: ./
1125+
target: ':instrumentation:vertx:vertx-sql-client:vertx-sql-client-4.0:javaagent'
1126+
- type: gradle
1127+
path: ./
1128+
target: ':instrumentation:vertx:vertx-sql-client:vertx-sql-client-5.0:javaagent'
1129+
- type: gradle
1130+
path: ./
1131+
target: ':instrumentation:vertx:vertx-sql-client:vertx-sql-client-common:javaagent'
11141132

11151133
experimental:
11161134
gradle:

.github/graal-native-docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
mongodb:
3-
image: mongo:4.0
3+
image: mongo:4.2
44
ports:
55
- "27017:27017"
66

.github/renovate.json5

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
33
extends: [
4-
'config:recommended',
5-
'docker:pinDigests',
6-
'helpers:pinGitHubActionDigests',
4+
'config:best-practices',
5+
'helpers:pinGitHubActionDigestsToSemver',
76
],
87
ignorePaths: [
98
'instrumentation/**',
@@ -28,9 +27,11 @@
2827
},
2928
{
3029
matchPackageNames: [
30+
'io.opentelemetry.contrib:opentelemetry-azure-resources',
3131
'io.opentelemetry.contrib:opentelemetry-aws-resources',
3232
'io.opentelemetry.contrib:opentelemetry-aws-xray-propagator',
3333
'io.opentelemetry.contrib:opentelemetry-gcp-resources',
34+
'io.opentelemetry.contrib:opentelemetry-cloudfoundry-resources',
3435
'io.opentelemetry.contrib:opentelemetry-baggage-processor',
3536
'io.opentelemetry.proto:opentelemetry-proto',
3637
'io.opentelemetry.semconv:opentelemetry-semconv',
@@ -78,6 +79,12 @@
7879
'com.gradleup.shadow{/,}**',
7980
],
8081
},
82+
{
83+
groupName: 'guava packages',
84+
matchPackageNames: [
85+
'com.google.guava{/,}**',
86+
],
87+
},
8188
{
8289
groupName: 'jackson packages',
8390
matchPackageNames: [
@@ -322,8 +329,8 @@
322329
{
323330
customType: 'regex',
324331
datasourceTemplate: 'pypi',
325-
fileMatch: [
326-
'^.github/workflows/',
332+
managerFilePatterns: [
333+
'/^.github/workflows//',
327334
],
328335
matchStrings: [
329336
'pip install (?<depName>[^=]+)==(?<currentValue>[^\\s]+)',
@@ -332,8 +339,8 @@
332339
{
333340
customType: 'regex',
334341
datasourceTemplate: 'npm',
335-
fileMatch: [
336-
'^.github/workflows/',
342+
managerFilePatterns: [
343+
'/^.github/workflows//',
337344
],
338345
matchStrings: [
339346
'npx (?<depName>[^@]+)@(?<currentValue>[^\\s]+)',

.github/repository-settings.md

Lines changed: 3 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -1,117 +1,8 @@
11
# Repository settings
22

33
This document describes any changes that have been made to the
4-
settings for this repository beyond the [OpenTelemetry default repository
5-
settings](https://github.com/open-telemetry/community/blob/main/docs/how-to-configure-new-repository.md#repository-settings).
6-
7-
## General > Pull Requests
8-
9-
- Allow squash merging > Default to pull request title
10-
11-
- Allow auto-merge
12-
13-
## Actions > General
14-
15-
- Fork pull request workflows from outside collaborators:
16-
"Require approval for first-time contributors who are new to GitHub"
17-
18-
(To reduce friction for new contributors,
19-
as the default is "Require approval for first-time contributors")
20-
21-
- Workflow permissions
22-
- Default permissions granted to the `GITHUB_TOKEN` when running workflows in this repository:
23-
Read repository contents and packages permissions
24-
- Allow GitHub Actions to create and approve pull requests: UNCHECKED
25-
26-
## Rules > Rulesets
27-
28-
### `main` and release branches
29-
30-
- Targeted branches:
31-
- `main`
32-
- `release/*`
33-
- Branch rules
34-
- Restrict deletions: CHECKED
35-
- Require a pull request before merging: CHECKED
36-
- Required approvals: 1
37-
- Require review from Code Owners: CHECKED
38-
- Allowed merge methods: Squash
39-
- Require status checks to pass
40-
- Do not require status checks on creation: CHECKED
41-
- Status checks that are required
42-
- EasyCLA
43-
- `required-status-check`
44-
- `gradle-wrapper-validation`
45-
- Block force pushes: CHECKED
46-
- Require code scanning results: CHECKED
47-
- CodeQL
48-
- Security alerts: High or higher
49-
- Alerts: Errors
50-
51-
> [!NOTE]
52-
> This repository can't "require linear history" because there is an old merge commit on `main`
53-
> (and so also on the release branches).
54-
55-
### `cloudfoundry` branch
56-
57-
- Targeted branches:
58-
- `cloudfoundry`
59-
- Branch rules
60-
- Restrict deletions: CHECKED
61-
- Require linear history: CHECKED
62-
- Require a pull request before merging: CHECKED
63-
- Required approvals: 1
64-
- Require review from Code Owners: CHECKED
65-
- Allowed merge methods: Squash
66-
- Require status checks to pass
67-
- EasyCLA
68-
- Block force pushes: CHECKED
69-
70-
### `gh-pages` branch
71-
72-
- Targeted branches:
73-
- `gh-pages`
74-
- Branch rules
75-
- Restrict deletions: CHECKED
76-
- Require linear history: CHECKED
77-
- Block force pushes: CHECKED
78-
79-
### Old-style release branches
80-
81-
- Targeted branches:
82-
- `v0.*`
83-
- `v1.*`
84-
- Branch rules
85-
- Restrict creations: CHECKED
86-
- Restrict updates: CHECKED
87-
- Restrict deletions: CHECKED
88-
89-
### Restrict branch creation
90-
91-
- Targeted branches
92-
- Exclude:
93-
- `release/*`
94-
- `renovate/**/*`
95-
- `otelbot/**/*`
96-
- `revert-*/**/*` (these are created when using the GitHub UI to revert a PR)
97-
- Restrict creations: CHECKED
98-
99-
### Restrict updating tags
100-
101-
- Targeted tags
102-
- All tags
103-
- Restrict updates: CHECKED
104-
- Restrict deletions: CHECKED
105-
106-
## Branch protections
107-
108-
### `main`, `release/*`, `cloudfoundry`
109-
110-
- Restrict who can push to matching branches: CHECKED
111-
112-
## Code security and analysis
113-
114-
- Secret scanning: Enabled
4+
settings in this repository outside the settings tracked in the
5+
private admin repo.
1156

1167
## Secrets and variables > Actions
1178

@@ -132,6 +23,7 @@ settings](https://github.com/open-telemetry/community/blob/main/docs/how-to-conf
13223

13324
- `FOSSA_API_KEY`
13425
- `OTELBOT_PRIVATE_KEY`
26+
- `OTELBOT_JAVA_INSTRUMENTATION_PRIVATE_KEY`
13527

13628
### Organization variables
13729

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# this file exists so that Renovate can auto-update docker image versions that are then used elsewhere
2+
3+
FROM lycheeverse/lychee:sha-2aa22f8@sha256:2e3786630482c41f9f2dd081e06d7da1c36d66996e8cf6573409b8bc418d48c4 AS lychee

.github/scripts/link-check.sh

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
export MSYS_NO_PATHCONV=1 # for Git Bash on Windows
6+
7+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8+
LYCHEE_CONFIG="$SCRIPT_DIR/../../.lychee.toml"
9+
DEPENDENCIES_DOCKERFILE="$SCRIPT_DIR/dependencies.dockerfile"
10+
11+
# Extract lychee version from dependencies.dockerfile
12+
LYCHEE_VERSION=$(grep "FROM lycheeverse/lychee:" "$DEPENDENCIES_DOCKERFILE" | sed 's/.*FROM lycheeverse\/lychee:\([^ ]*\).*/\1/')
13+
14+
# Build the lychee command with optional GitHub token
15+
CMD="lycheeverse/lychee:$LYCHEE_VERSION --verbose --config $(basename "$LYCHEE_CONFIG")"
16+
17+
# Add GitHub token if available
18+
if [[ -n "$GITHUB_TOKEN" ]]; then
19+
CMD="$CMD --github-token $GITHUB_TOKEN"
20+
fi
21+
22+
# Add the target directory
23+
CMD="$CMD ."
24+
25+
# Determine if we should allocate a TTY
26+
DOCKER_FLAGS="--rm --init"
27+
if [[ -t 0 ]]; then
28+
DOCKER_FLAGS="$DOCKER_FLAGS -it"
29+
else
30+
DOCKER_FLAGS="$DOCKER_FLAGS -i"
31+
fi
32+
33+
# Run lychee with proper signal handling
34+
# shellcheck disable=SC2086
35+
exec docker run $DOCKER_FLAGS -v "$(dirname "$LYCHEE_CONFIG")":/data -w /data $CMD
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Auto license report
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- synchronize
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
10+
cancel-in-progress: true
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
check:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
20+
21+
- name: Free disk space
22+
run: .github/scripts/gha-free-disk-space.sh
23+
24+
- name: Set up JDK for running Gradle
25+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
26+
with:
27+
distribution: temurin
28+
java-version-file: .java-version
29+
30+
- name: Set up gradle
31+
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
32+
with:
33+
cache-read-only: true
34+
35+
- name: Check out PR branch
36+
env:
37+
GH_TOKEN: ${{ github.token }}
38+
run: gh pr checkout ${{ github.event.pull_request.number }}
39+
40+
- name: Update license report
41+
run: ./gradlew generateLicenseReport --no-build-cache
42+
43+
- id: create-patch
44+
name: Create patch file
45+
run: |
46+
git add -N licenses
47+
git diff > patch
48+
if [ -s patch ]; then
49+
echo "exists=true" >> "$GITHUB_OUTPUT"
50+
fi
51+
52+
- name: Upload patch file
53+
if: steps.create-patch.outputs.exists == 'true'
54+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
55+
with:
56+
path: patch
57+
name: patch

0 commit comments

Comments
 (0)