Skip to content

Commit 491fc73

Browse files
authored
Merge branch 'main' into 23662
2 parents f3b1bdf + 27c848a commit 491fc73

File tree

108 files changed

+896
-133
lines changed

Some content is hidden

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

108 files changed

+896
-133
lines changed

.chloggen/awss3exporter-timeout.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: enhancement
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
7+
component: awss3exporter
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Implement timeout for S3 exporter
11+
12+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
13+
issues: [36264]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext:
19+
20+
# If your change doesn't affect end users or the exported elements of any package,
21+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
22+
# Optional: The change log or logs in which this entry should be included.
23+
# e.g. '[user]' or '[user, api]'
24+
# Include 'user' if the change is relevant to end users.
25+
# Include 'api' if there is a change to a library API.
26+
# Default: '[user]'
27+
change_logs: [user]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: 'enhancement'
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
7+
component: hostmetricsreceiver
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: >
11+
Reduced the cost of retrieving number of threads and parent process ID on Windows.
12+
Disable the featuregate `hostmetrics.process.onWindowsUseNewGetProcesses` to fallback to the previous implementation.
13+
14+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
15+
issues: [32947, 38589]
16+
17+
# (Optional) One or more lines of additional information to render under the primary note.
18+
# These lines will be padded with 2 spaces and then inserted directly into the document.
19+
# Use pipe (|) for multiline entries.
20+
subtext:
21+
22+
# If your change doesn't affect end users or the exported elements of any package,
23+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
24+
# Optional: The change log or logs in which this entry should be included.
25+
# e.g. '[user]' or '[user, api]'
26+
# Include 'user' if the change is relevant to end users.
27+
# Include 'api' if there is a change to a library API.
28+
# Default: '[user]'
29+
change_logs: [user]

.chloggen/tpm-bootstrap.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: new_component
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
7+
component: tpmextension
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Add scaffolding for Trusted Platform Module extension.
11+
12+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
13+
issues: [38682]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext:
19+
20+
# If your change doesn't affect end users or the exported elements of any package,
21+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
22+
# Optional: The change log or logs in which this entry should be included.
23+
# e.g. '[user]' or '[user, api]'
24+
# Include 'user' if the change is relevant to end users.
25+
# Include 'api' if there is a change to a library API.
26+
# Default: '[user]'
27+
change_logs: []

.github/CODEOWNERS

+2-1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ extension/storage/dbstorage/ @open-telemetry
129129
extension/storage/filestorage/ @open-telemetry/collector-contrib-approvers @swiatekm @VihasMakwana
130130
extension/storage/redisstorageextension/ @open-telemetry/collector-contrib-approvers @atoulme
131131
extension/sumologicextension/ @open-telemetry/collector-contrib-approvers @rnishtala-sumo @chan-tim-sumo @echlebek @amdprophet
132+
extension/tpmextension/ @open-telemetry/collector-contrib-approvers @pavolloffay
132133
internal/aws/ @open-telemetry/collector-contrib-approvers @Aneurysm9 @mxiamxia
133134
internal/collectd/ @open-telemetry/collector-contrib-approvers @atoulme
134135
internal/common/ @open-telemetry/collector-contrib-approvers @open-telemetry/collector-approvers
@@ -299,7 +300,7 @@ receiver/solacereceiver/ @open-telemetry
299300
receiver/splunkenterprisereceiver/ @open-telemetry/collector-contrib-approvers @shalper2 @MovieStoreGuy @greatestusername
300301
receiver/splunkhecreceiver/ @open-telemetry/collector-contrib-approvers @atoulme
301302
receiver/sqlqueryreceiver/ @open-telemetry/collector-contrib-approvers @dmitryax @crobert-1
302-
receiver/sqlserverreceiver/ @open-telemetry/collector-contrib-approvers @StefanKurek @sincejune
303+
receiver/sqlserverreceiver/ @open-telemetry/collector-contrib-approvers @StefanKurek @sincejune @crobert-1
303304
receiver/sshcheckreceiver/ @open-telemetry/collector-contrib-approvers @nslaughter
304305
receiver/statsdreceiver/ @open-telemetry/collector-contrib-approvers @jmacd @dmitryax
305306
receiver/syslogreceiver/ @open-telemetry/collector-contrib-approvers @djaglowski @andrzej-stencel

.github/ISSUE_TEMPLATE/bug_report.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ body:
133133
- extension/storage/filestorage
134134
- extension/storage/redisstorage
135135
- extension/sumologic
136+
- extension/tpm
136137
- internal/aws
137138
- internal/collectd
138139
- internal/common

.github/ISSUE_TEMPLATE/feature_request.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ body:
127127
- extension/storage/filestorage
128128
- extension/storage/redisstorage
129129
- extension/sumologic
130+
- extension/tpm
130131
- internal/aws
131132
- internal/collectd
132133
- internal/common

.github/ISSUE_TEMPLATE/other.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ body:
127127
- extension/storage/filestorage
128128
- extension/storage/redisstorage
129129
- extension/sumologic
130+
- extension/tpm
130131
- internal/aws
131132
- internal/collectd
132133
- internal/common

.github/ISSUE_TEMPLATE/unmaintained.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ body:
132132
- extension/storage/filestorage
133133
- extension/storage/redisstorage
134134
- extension/sumologic
135+
- extension/tpm
135136
- internal/aws
136137
- internal/collectd
137138
- internal/common

.github/component_labels.txt

+1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ extension/storage/dbstorage extension/storage/dbstorage
110110
extension/storage/filestorage extension/storage/filestorage
111111
extension/storage/redisstorageextension extension/storage/redisstorage
112112
extension/sumologicextension extension/sumologic
113+
extension/tpmextension extension/tpm
113114
internal/aws internal/aws
114115
internal/collectd internal/collectd
115116
internal/common internal/common

.github/workflows/build-and-test-arm.yml

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ env:
1212
# We limit cache download as a whole to 5 minutes.
1313
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
1414

15+
permissions: read-all
16+
1517
# Do not cancel this workflow on main. See https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/16616
1618
concurrency:
1719
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

.github/workflows/build-and-test-darwin.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ concurrency:
2020
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
2121
cancel-in-progress: true
2222

23+
permissions: read-all
24+
2325
jobs:
2426
darwin-build-unittest-binary:
2527
if: ${{ github.actor != 'dependabot[bot]' && (contains(github.event.pull_request.labels.*.name, 'Run Darwin') || github.event_name == 'push' || github.event_name == 'merge_group') }}

.github/workflows/build-and-test-windows.yml

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ concurrency:
2222
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
2323
cancel-in-progress: true
2424

25+
permissions: read-all
26+
2527
jobs:
2628
windows-unittest-matrix:
2729
strategy:

.github/workflows/build-and-test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- "v[0-9]+.[0-9]+.[0-9]+*"
77
merge_group:
88
pull_request:
9+
10+
permissions: read-all
11+
912
env:
1013
TEST_RESULTS: testbed/tests/results/junit/results.xml
1114
# Make sure to exit early if cache segment download times out after 2 minutes.

.github/workflows/changelog.yml

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
branches:
1212
- main
1313

14+
permissions: read-all
15+
1416
env:
1517
# Make sure to exit early if cache segment download times out after 2 minutes.
1618
# We limit cache download as a whole to 5 minutes.

.github/workflows/check-codeowners.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ concurrency:
2020
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
2121
cancel-in-progress: true
2222

23+
permissions: read-all
24+
2325
jobs:
2426
check-codeowners:
2527
timeout-minutes: 30

.github/workflows/check-links.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ concurrency:
99
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1010
cancel-in-progress: true
1111

12+
permissions: read-all
13+
1214
jobs:
1315
changedfiles:
1416
name: changed files

.github/workflows/codeql-analysis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
paths-ignore:
77
- "**/README.md"
88

9+
permissions: read-all
10+
911
jobs:
1012
CodeQL-Build:
1113
runs-on: macos-latest

.github/workflows/load-tests.yml

+7
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ env:
1818
# We limit cache download as a whole to 5 minutes.
1919
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
2020

21+
permissions: read-all
22+
2123
jobs:
2224
setup-environment:
2325
timeout-minutes: 30
@@ -122,6 +124,11 @@ jobs:
122124
update-benchmarks:
123125
runs-on: ubuntu-24.04
124126
needs: [loadtest]
127+
permissions:
128+
# deployments permission to deploy GitHub pages website
129+
deployments: write
130+
# contents permission to update benchmark contents in gh-pages branch
131+
contents: write
125132
if: github.event_name != 'pull_request'
126133
steps:
127134
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

.github/workflows/scoped-test.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
pull_request:
77
types: [opened, synchronize, reopened]
88

9+
permissions: read-all
10+
911
jobs:
1012
changedfiles:
1113
runs-on: ubuntu-latest

.github/workflows/scripts/add-codeowners-to-pr.sh

+4
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ main () {
104104
done
105105
done
106106

107+
if [[ $LABELS =~ "receiver/sqlserver" ]]; then
108+
LABELS+=",Run Windows"
109+
fi
110+
107111
if [[ -n "${LABELS}" ]]; then
108112
echo "Adding labels: ${LABELS}"
109113
gh pr edit "${PR}" --add-label "${LABELS}" || echo "Failed to add labels"

.github/workflows/scripts/ping-codeowners-issues.sh

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ fi
1414

1515
CUR_DIRECTORY=$(dirname "$0")
1616
COMPONENT=$(awk -v path="${COMPONENT}" 'index($1, path) > 0 || index($2, path) > 0 {print $1}' .github/component_labels.txt | head -n 1)
17+
# Some labels are unrelated to components. These labels do not have code owners,
18+
# e.g "os:windows", "priority:p1", and "chore"
19+
if [[ -z "${COMPONENT}" ]]; then
20+
exit 0
21+
fi
22+
1723
OWNERS=$(COMPONENT="${COMPONENT}" bash "${CUR_DIRECTORY}/get-codeowners.sh")
1824

1925
if [[ -z "${OWNERS}" ]]; then

.github/workflows/telemetrygen.yml

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ concurrency:
2020
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
2121
cancel-in-progress: true
2222

23+
permissions: read-all
24+
2325
jobs:
2426
build-dev:
2527
runs-on: ubuntu-24.04

cmd/otelcontribcol/builder-config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ extensions:
4040
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/remotetapextension v0.122.0
4141
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/sigv4authextension v0.122.0
4242
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/solarwindsapmsettingsextension v0.122.0
43+
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/tpmextension v0.122.0
4344
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage/dbstorage v0.122.0
4445
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage/filestorage v0.122.0
4546
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage/redisstorageextension v0.122.0

exporter/awss3exporter/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ The following exporter configuration parameters are supported.
3737
| `disable_ssl` | set this to `true` to disable SSL when sending requests | false |
3838
| `compression` | should the file be compressed | none |
3939
| `sending_queue` | [exporters common queuing](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md) | disabled |
40+
| `timeout` | [exporters common timeout](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md) | 5s |
41+
4042

4143
### Marshaler
4244

@@ -76,6 +78,9 @@ exporters:
7678
enabled: true
7779
num_consumers: 10
7880
queue_size: 100
81+
82+
# Optional (5s by default)
83+
timeout: 20s
7984
```
8085
8186
Logs and traces will be stored inside 'databucket' in the following path format.

exporter/awss3exporter/config.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ const (
5353

5454
// Config contains the main configuration options for the s3 exporter
5555
type Config struct {
56-
QueueSettings exporterhelper.QueueConfig `mapstructure:"sending_queue"`
57-
58-
S3Uploader S3UploaderConfig `mapstructure:"s3uploader"`
59-
MarshalerName MarshalerType `mapstructure:"marshaler"`
56+
QueueSettings exporterhelper.QueueConfig `mapstructure:"sending_queue"`
57+
TimeoutSettings exporterhelper.TimeoutConfig `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct.
58+
S3Uploader S3UploaderConfig `mapstructure:"s3uploader"`
59+
MarshalerName MarshalerType `mapstructure:"marshaler"`
6060

6161
// Encoding to apply. If present, overrides the marshaler configuration option.
6262
Encoding *component.ID `mapstructure:"encoding"`

0 commit comments

Comments
 (0)