Skip to content

Commit 1873b49

Browse files
committed
Merge remote-tracking branch 'upstream/main' into feature/valkey
; Conflicts: ; opentelemetry-contrib-instrumentations/pyproject.toml ; opentelemetry-instrumentation/src/opentelemetry/instrumentation/bootstrap_gen.py ; tests/opentelemetry-docker-tests/tests/test-requirements.txt
2 parents acc6cae + 26c975f commit 1873b49

229 files changed

Lines changed: 2737 additions & 789 deletions

File tree

Some content is hidden

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

.changelog/4367.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
`opentelemetry-instrumentation-django`: Remove duplicate query logging in SQLCommenter middleware that broke Django's `assertNumQueries`

.changelog/4433.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
`opentelemetry-instrumentation-flask`: wrap wsgi_app call in try/except to prevent active_requests gauge leak

.changelog/4529.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
`opentelemetry-instrumentation-asyncpg`: instrument prepared statements

.changelog/4613.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
`opentelemetry-instrumentation-aiokafka`, `opentelemetry-instrumentation-confluent-kafka`, `opentelemetry-instrumentation-kafka-python`: fix malformed RST formatting in module docstrings

.github/workflows/changelog.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
types: [opened, synchronize, reopened, labeled, unlabeled]
1010
branches:
1111
- main
12+
merge_group:
1213

1314
permissions:
1415
contents: read
@@ -17,6 +18,7 @@ jobs:
1718
changelog:
1819
runs-on: ubuntu-latest
1920
if: |
21+
github.event_name != 'merge_group' &&
2022
!contains(github.event.pull_request.labels.*.name, 'Skip Changelog')
2123
&& github.actor != 'otelbot[bot]'
2224
@@ -30,7 +32,7 @@ jobs:
3032

3133
- name: Ensure no direct changes to CHANGELOG.md
3234
run: |
33-
if [[ $(git diff --name-only FETCH_HEAD -- '**/CHANGELOG.md') ]]
35+
if [[ $(git diff --name-only FETCH_HEAD -- 'CHANGELOG.md' '**/CHANGELOG.md') ]]
3436
then
3537
echo "CHANGELOG.md files should not be directly modified."
3638
echo "Please add a changelog fragment file to the appropriate .changelog/ directory instead."
@@ -41,13 +43,15 @@ jobs:
4143
fi
4244
4345
- name: Check for changelog fragment
46+
env:
47+
PR_NUMBER: ${{ github.event.pull_request.number }}
4448
run: |
4549
# Check for any new fragment files in any .changelog/ directory
4650
fragments=$(git diff --diff-filter=A --name-only FETCH_HEAD -- '**/.changelog/*' '.changelog/*' | grep -v '.gitignore' || true)
4751
if [[ -z "$fragments" ]]; then
4852
echo "No changelog fragment found for this PR."
4953
echo ""
50-
echo "Add a file named .changelog/${{ github.event.pull_request.number }}.<type>"
54+
echo "Add a file named .changelog/${PR_NUMBER}.<type>"
5155
echo "where <type> is one of: added, changed, deprecated, removed, fixed"
5256
echo ""
5357
echo "For coordinated packages, add to the root .changelog/ directory."
@@ -57,6 +61,24 @@ jobs:
5761
echo "Or add the \"Skip Changelog\" label if this job should be skipped."
5862
exit 1
5963
fi
64+
invalid=()
65+
while IFS= read -r f; do
66+
base=$(basename "$f")
67+
if [[ ! "$base" =~ ^([0-9]+)\.(added|changed|deprecated|removed|fixed)$ ]]; then
68+
invalid+=("$f (expected <PR_NUMBER>.<type>; type one of added, changed, deprecated, removed, fixed)")
69+
continue
70+
fi
71+
if [[ "${BASH_REMATCH[1]}" != "${PR_NUMBER}" ]]; then
72+
invalid+=("$f (PR number ${BASH_REMATCH[1]} does not match this PR's number ${PR_NUMBER})")
73+
fi
74+
done <<< "$fragments"
75+
if (( ${#invalid[@]} > 0 )); then
76+
echo "Invalid changelog fragment(s):"
77+
for msg in "${invalid[@]}"; do
78+
echo " $msg"
79+
done
80+
exit 1
81+
fi
6082
echo "Found changelog fragment(s):"
6183
echo "$fragments"
6284

.github/workflows/check-links.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ on:
1313
- '**/*.rst'
1414
- '.github/workflows/check-links.yml'
1515
- '.github/workflows/check_links_config.json'
16+
merge_group:
17+
paths:
18+
- '**/*.md'
19+
- '**/*.rst'
20+
- '.github/workflows/check-links.yml'
21+
- '.github/workflows/check_links_config.json'
1622

1723
permissions:
1824
contents: read
@@ -21,6 +27,9 @@ concurrency:
2127
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
2228
cancel-in-progress: true
2329

30+
env:
31+
DIFF_RANGE: ${{ github.event_name == 'merge_group' && format('{0}...{1}', github.event.merge_group.base_sha, github.event.merge_group.head_sha) || format('origin/{0}...HEAD', github.base_ref) }}
32+
2433
jobs:
2534
check-links:
2635
runs-on: ubuntu-latest
@@ -53,14 +62,14 @@ jobs:
5362
${{ steps.changed-files.outputs.all_changed_files }} \
5463
|| { echo "Check that anchor links are lowercase"; exit 1; }
5564
56-
- name: Check new links only on pull requests
57-
if: steps.changed-files.outputs.any_changed == 'true' && github.event_name == 'pull_request'
65+
- name: Check new links
66+
if: steps.changed-files.outputs.any_changed == 'true' && (github.event_name == 'pull_request' || github.event_name == 'merge_group')
5867
run: |
5968
# Extract URLs only from added lines in the diff to avoid
6069
# rate limiting when checking all links in large files like
6170
# CHANGELOG.md. Only new/changed links are checked on PRs;
6271
# pushes to main still check all links in changed files.
63-
git diff "origin/${{ github.base_ref }}...HEAD" -- \
72+
git diff "$DIFF_RANGE" -- \
6473
${{ steps.changed-files.outputs.all_changed_files }} \
6574
| grep '^+' | grep -v '^+++' \
6675
| grep -oP 'https?://[^\s\)\]\"'"'"'`>]+' \

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
branches:
99
- 'main'
1010
pull_request:
11+
merge_group:
1112

1213
permissions:
1314
contents: read

.github/workflows/generate_workflows_lib/src/generate_workflows_lib/ci.yml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
branches:
99
- 'main'
1010
pull_request:
11+
merge_group:
1112

1213
permissions:
1314
contents: read

.github/workflows/generate_workflows_lib/src/generate_workflows_lib/misc.yml.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ jobs:
4141
{%- endif %}
4242
{%- if job_data == "docs" %}
4343
if: |
44-
github.event.pull_request.user.login != 'otelbot[bot]' && github.event_name == 'pull_request'
44+
github.event_name == 'merge_group' ||
45+
(github.event_name == 'pull_request' &&
46+
github.event.pull_request.user.login != 'otelbot[bot]')
4547
{%- endif %}
4648
steps:
4749
- name: Checkout repo @ SHA - ${% raw %}{{ github.sha }}{% endraw %}

.github/workflows/misc.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ jobs:
7070
runs-on: ubuntu-latest
7171
timeout-minutes: 30
7272
if: |
73-
github.event.pull_request.user.login != 'otelbot[bot]' && github.event_name == 'pull_request'
73+
github.event_name == 'merge_group' ||
74+
(github.event_name == 'pull_request' &&
75+
github.event.pull_request.user.login != 'otelbot[bot]')
7476
steps:
7577
- name: Checkout repo @ SHA - ${{ github.sha }}
7678
uses: actions/checkout@v4

0 commit comments

Comments
 (0)