Skip to content

Commit 0908333

Browse files
authored
Merge branch 'open-telemetry:main' into add-user-agent-customization
2 parents be84f7d + dae0e3a commit 0908333

File tree

186 files changed

+3653
-1431
lines changed

Some content is hidden

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

186 files changed

+3653
-1431
lines changed

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,13 @@ indent_size = 2
174174

175175
[*.cshtml.cs]
176176
dotnet_diagnostic.SA1649.severity = none
177+
178+
# Verify settings
179+
[*.{received,verified}.{json,txt,xml}]
180+
charset = utf-8-bom
181+
end_of_line = lf
182+
indent_size = unset
183+
indent_style = unset
184+
insert_final_newline = false
185+
tab_width = unset
186+
trim_trailing_whitespace = false

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
*.sh eol=lf
2+
3+
# Verify settings
4+
*.verified.txt text eol=lf working-tree-encoding=UTF-8
5+
*.verified.xml text eol=lf working-tree-encoding=UTF-8
6+
*.verified.json text eol=lf working-tree-encoding=UTF-8
7+
*.verified.bin binary

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,5 @@ body:
9090
label: Tip
9191
description: This element is static, used to render a helpful sub-heading for end-users and community members to help prioritize issues. Please leave as is.
9292
options:
93-
- <sub>[React](https://github.blog/news-insights/product-news/add-reactions-to-pull-requests-issues-and-comments/) with :+1: to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it. Learn more [here](https://opentelemetry.io/community/end-user/issue-participation/).</sub>
93+
- "<sub>[React](https://github.blog/news-insights/product-news/add-reactions-to-pull-requests-issues-and-comments/) with :+1: to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it. Learn more [here](https://opentelemetry.io/community/end-user/issue-participation/).</sub>"
9494
default: 0

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ body:
5959
label: Tip
6060
description: This element is static, used to render a helpful sub-heading for end-users and community members to help prioritize issues. Please leave as is.
6161
options:
62-
- <sub>[React](https://github.blog/news-insights/product-news/add-reactions-to-pull-requests-issues-and-comments/) with :+1: to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it. Learn more [here](https://opentelemetry.io/community/end-user/issue-participation/).</sub>
62+
- "<sub>[React](https://github.blog/news-insights/product-news/add-reactions-to-pull-requests-issues-and-comments/) with :+1: to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it. Learn more [here](https://opentelemetry.io/community/end-user/issue-participation/).</sub>"
6363
default: 0

.github/dependabot.yml

Lines changed: 3 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,10 @@
1+
# This file is retained solely for automated tooling to see we do automated
2+
# dependency updates as not all such scanners recognize the use of Renovate.
13
version: 2
24
updates:
35
- package-ecosystem: "github-actions"
46
directory: "/"
57
schedule:
6-
interval: "daily"
7-
labels:
8-
- "infra"
9-
- package-ecosystem: "docker"
10-
directory: "/examples/MicroserviceExample/WebApi"
11-
schedule:
12-
interval: "weekly"
13-
day: "wednesday"
14-
labels:
15-
- "infra"
16-
ignore:
17-
- dependency-name: "*"
18-
update-types:
19-
- "version-update:semver-major"
20-
- "version-update:semver-minor"
21-
- package-ecosystem: "docker"
22-
directory: "examples/MicroserviceExample/WorkerService"
23-
schedule:
24-
interval: "weekly"
25-
day: "wednesday"
26-
labels:
27-
- "infra"
28-
ignore:
29-
- dependency-name: "*"
30-
update-types:
31-
- "version-update:semver-major"
32-
- "version-update:semver-minor"
33-
- package-ecosystem: "docker"
34-
directory: "test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/IntegrationTest"
35-
schedule:
36-
interval: "weekly"
37-
day: "wednesday"
38-
labels:
39-
- "infra"
40-
ignore:
41-
- dependency-name: "*"
42-
update-types:
43-
- "version-update:semver-major"
44-
- "version-update:semver-minor"
45-
- package-ecosystem: "docker"
46-
directory: "test/OpenTelemetry.Instrumentation.W3cTraceContext.Tests"
47-
schedule:
48-
interval: "weekly"
49-
day: "wednesday"
50-
labels:
51-
- "infra"
52-
ignore:
53-
- dependency-name: "*"
54-
update-types:
55-
- "version-update:semver-major"
56-
- "version-update:semver-minor"
57-
- package-ecosystem: "dotnet-sdk"
58-
directory: "/"
59-
schedule:
60-
interval: "weekly"
61-
day: "wednesday"
62-
labels:
63-
- "infra"
64-
ignore:
65-
- dependency-name: "*"
66-
update-types:
67-
- "version-update:semver-major"
68-
- "version-update:semver-minor"
69-
- package-ecosystem: "pip"
70-
directory: "test/OpenTelemetry.Instrumentation.W3cTraceContext.Tests"
71-
schedule:
72-
interval: "weekly"
73-
day: "wednesday"
8+
interval: yearly
749
labels:
7510
- "infra"

.github/renovate.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"additionalBranchPrefix": "{{manager}}/",
4+
"automerge": false,
5+
"commitBodyTable": true,
6+
"commitMessageAction": "Bump",
7+
"dependencyDashboard": false,
8+
"extends": [
9+
"config:best-practices",
10+
"customManagers:dockerfileVersions",
11+
"customManagers:githubActionsVersions",
12+
":automergeRequireAllStatusChecks",
13+
":disableRateLimiting",
14+
":enableVulnerabilityAlerts",
15+
":gitSignOff",
16+
":ignoreUnstable"
17+
],
18+
"ignorePresets": [
19+
":ignoreModulesAndTests"
20+
],
21+
"ignorePaths": [
22+
"**/node_modules/**",
23+
"**/bower_components/**",
24+
"**/vendor/**",
25+
"**/__tests__/**",
26+
"**/__fixtures__/**"
27+
],
28+
"labels": ["dependencies", "infra"],
29+
"packageRules": [
30+
{
31+
"matchManagers": ["dockerfile"],
32+
"addLabels": ["docker"]
33+
},
34+
{
35+
"matchManagers": ["github-actions"],
36+
"addLabels": ["github_actions"]
37+
},
38+
{
39+
"matchManagers": ["nuget"],
40+
"addLabels": [".NET"]
41+
},
42+
{
43+
"matchManagers": ["pypi"],
44+
"addLabels": ["python"]
45+
},
46+
{
47+
"description": ["Skip pinned NuGet package versions"],
48+
"matchManagers": ["nuget"],
49+
"matchCurrentValue": "^\\[[^,]+,\\)$",
50+
"enabled": false
51+
},
52+
{
53+
"extends": ["monorepo:dotnet"],
54+
"description": ["Disable major version updates for .NET"],
55+
"matchUpdateTypes": ["major"],
56+
"enabled": false
57+
},
58+
{
59+
"matchDepNames": ["xunit"],
60+
"description": ["Disable major version updates for xunit"],
61+
"matchUpdateTypes": ["major"],
62+
"enabled": false
63+
}
64+
],
65+
"schedule": ["* 8-17 * * 3"],
66+
"timezone": "Etc/UTC",
67+
"vulnerabilityAlerts": {
68+
"addLabels": ["security"]
69+
}
70+
}

.github/workflows/Component.BuildTest.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ on:
2020
required: false
2121
type: string
2222
os-list:
23-
default: '[ "windows-latest", "ubuntu-22.04", "ubuntu-22.04-arm" ]'
23+
default: '[ "windows-latest", "windows-11-arm", "ubuntu-22.04", "ubuntu-22.04-arm" ]'
2424
required: false
2525
type: string
2626
tfm-list:
27-
default: '[ "net462", "net8.0", "net9.0" ]'
27+
default: '[ "net462", "net8.0", "net9.0", "net10.0" ]'
2828
required: false
2929
type: string
3030

@@ -45,9 +45,12 @@ jobs:
4545
- os: ubuntu-22.04-arm
4646
version: net462
4747
- os: ubuntu-22.04-arm
48-
version: net8.0
48+
version: net10.0
49+
- os: windows-11-arm
50+
version: net10.0
4951

5052
runs-on: ${{ matrix.os }}
53+
timeout-minutes: 30
5154
steps:
5255
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5356
with:
@@ -57,13 +60,14 @@ jobs:
5760
fetch-depth: 0
5861

5962
- name: Setup previous .NET runtimes
60-
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
63+
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
6164
with:
6265
dotnet-version: |
6366
8.0.x
67+
9.0.x
6468
6569
- name: Setup .NET
66-
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
70+
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
6771

6872
- name: dotnet restore ${{ inputs.project-name }}
6973
run: dotnet restore ${{ inputs.project-name }} ${{ inputs.project-build-commands }}
@@ -92,7 +96,7 @@ jobs:
9296
run: dotnet-coverage merge -f cobertura -o ./TestResults/Cobertura.xml ./TestResults/**/*.coverage
9397

9498
- name: Upload code coverage ${{ inputs.code-cov-prefix }}-${{ inputs.code-cov-name }}
95-
uses: codecov/codecov-action@fdcc8476540edceab3de004e990f80d881c6cc00 # v5.5.0
99+
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
96100
continue-on-error: true # Note: Don't fail for upload failures
97101
env:
98102
OS: ${{ matrix.os }}

.github/workflows/add-labels.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
issues: write
1616
if: github.event_name == 'issues' && !github.event.issue.pull_request
1717

18-
runs-on: ubuntu-22.04
18+
runs-on: ubuntu-24.04
1919

2020
steps:
2121
- name: check out code
@@ -38,7 +38,7 @@ jobs:
3838
pull-requests: write
3939
if: github.event_name == 'pull_request_target'
4040

41-
runs-on: ubuntu-22.04
41+
runs-on: ubuntu-24.04
4242

4343
steps:
4444
- name: check out code

.github/workflows/automation.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ on:
55
outputs:
66
enabled:
77
value: ${{ jobs.resolve-automation.outputs.enabled == 'true' }}
8-
token-secret-name:
9-
value: ${{ jobs.resolve-automation.outputs.token-secret-name }}
108
username:
119
value: ${{ vars.AUTOMATION_USERNAME }}
1210
email:
1311
value: ${{ vars.AUTOMATION_EMAIL }}
12+
application-name:
13+
value: ${{ vars.AUTOMATION_APPLICATION_NAME }}
14+
application-username:
15+
value: ${{ vars.AUTOMATION_APPLICATION_USERNAME }}
1416
secrets:
15-
OPENTELEMETRYBOT_GITHUB_TOKEN:
17+
OTELBOT_DOTNET_PRIVATE_KEY:
1618
required: false
1719

1820
permissions:
@@ -21,17 +23,15 @@ permissions:
2123
jobs:
2224
resolve-automation:
2325

24-
runs-on: ubuntu-22.04
26+
runs-on: ubuntu-24.04
2527

2628
outputs:
2729
enabled: ${{ steps.evaluate.outputs.enabled }}
28-
token-secret-name: ${{ steps.evaluate.outputs.token-secret-name }}
2930

3031
env:
31-
OPENTELEMETRYBOT_GITHUB_TOKEN_EXISTS: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN != '' }}
32+
OTELBOT_DOTNET_PRIVATE_KEY_EXISTS: ${{ secrets.OTELBOT_DOTNET_PRIVATE_KEY != '' }}
3233

3334
steps:
3435
- id: evaluate
3536
run: |
36-
echo "enabled=${{ env.OPENTELEMETRYBOT_GITHUB_TOKEN_EXISTS == 'true' }}" >> "$GITHUB_OUTPUT"
37-
echo "token-secret-name=OPENTELEMETRYBOT_GITHUB_TOKEN" >> "$GITHUB_OUTPUT"
37+
echo "enabled=${{ env.OTELBOT_DOTNET_PRIVATE_KEY_EXISTS == 'true' }}" >> "$GITHUB_OUTPUT"

.github/workflows/ci.yml

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
branches: [ 'main*' ]
99
pull_request:
1010
branches: [ 'main*' ]
11+
merge_group:
12+
types: [ checks_requested ]
1113

1214
permissions:
1315
contents: read
@@ -16,6 +18,13 @@ jobs:
1618
lint-misspell-sanitycheck:
1719
uses: ./.github/workflows/sanitycheck.yml
1820

21+
code-ql:
22+
uses: ./.github/workflows/codeql-analysis-steps.yml
23+
permissions:
24+
actions: read
25+
contents: read
26+
security-events: write
27+
1928
detect-changes:
2029
runs-on: windows-latest
2130
outputs:
@@ -110,11 +119,11 @@ jobs:
110119
|| contains(needs.detect-changes.outputs.changes, 'otlp')
111120
|| contains(needs.detect-changes.outputs.changes, 'build')
112121
|| contains(needs.detect-changes.outputs.changes, 'shared')
113-
runs-on: ubuntu-22.04
122+
runs-on: ubuntu-24.04
114123
strategy:
115124
fail-fast: false
116125
matrix:
117-
version: [ net8.0, net9.0 ]
126+
version: [ net8.0, net9.0, net10.0 ]
118127
steps:
119128
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
120129
- name: Run OTLP Exporter docker compose
@@ -128,11 +137,11 @@ jobs:
128137
|| contains(needs.detect-changes.outputs.changes, 'instrumentation')
129138
|| contains(needs.detect-changes.outputs.changes, 'build')
130139
|| contains(needs.detect-changes.outputs.changes, 'shared')
131-
runs-on: ubuntu-22.04
140+
runs-on: ubuntu-24.04
132141
strategy:
133142
fail-fast: false
134143
matrix:
135-
version: [ net8.0, net9.0 ]
144+
version: [ net8.0, net9.0, net10.0 ]
136145
steps:
137146
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
138147
- name: Run W3C Trace Context docker compose
@@ -175,6 +184,7 @@ jobs:
175184
build-test:
176185
needs: [
177186
detect-changes,
187+
code-ql,
178188
lint-misspell-sanitycheck,
179189
lint-md,
180190
lint-dotnet-format,
@@ -190,7 +200,17 @@ jobs:
190200
concurrency-tests
191201
]
192202
if: always() && !cancelled()
193-
runs-on: ubuntu-22.04
203+
runs-on: ubuntu-24.04
194204
steps:
195-
- run: |
196-
if ( ${{ contains(needs.*.result, 'failure') }} == true ); then echo 'build failed'; exit 1; else echo 'build complete'; fi
205+
- name: Report CI status
206+
shell: bash
207+
env:
208+
CI_SUCCESS: ${{ !contains(needs.*.result, 'failure') }}
209+
run: |
210+
if [ "${CI_SUCCESS}" == "true" ]
211+
then
212+
echo 'Build complete'
213+
else
214+
echo 'Build failed'
215+
exit 1
216+
fi

0 commit comments

Comments
 (0)