Skip to content

Commit 3a57531

Browse files
tim-liakh-datadogsongy23
authored andcommitted
[OTAGENT-412] Updated modules adding ability for serialize exporter to set proxy variables (open-telemetry#41041)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description This PR improves the serializer exporter by introducing support for HTTP proxy settings via both environment variables and explicit configuration. - The exporter now reads from the standard environment variables: HTTP_PROXY, HTTPS_PROXY, and NO_PROXY. - A new proxy_url field was added to the exporter's configuration. If set, this will override the environment variables. <!--Describe what testing was performed and which tests were added.--> #### Testing Added new unit tests and manually tested with proxy applciation. #### Related PR DataDog/datadog-agent#38224 --------- Co-authored-by: Yang Song <songy23@users.noreply.github.com>
1 parent 0f2ef7f commit 3a57531

File tree

8 files changed

+185
-36
lines changed

8 files changed

+185
-36
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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: bug_fix
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
7+
component: datadogexporter
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Added ability for Datadog metrics serializer exporter to set proxy variables
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: [41041]
14+
15+
# If your change doesn't affect end users or the exported elements of any package,
16+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
17+
# Optional: The change log or logs in which this entry should be included.
18+
# e.g. '[user]' or '[user, api]'
19+
# Include 'user' if the change is relevant to end users.
20+
# Include 'api' if there is a change to a library API.
21+
# Default: '[user]'
22+
change_logs: [user]

connector/datadogconnector/go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ require (
6060
github.com/DataDog/datadog-agent/comp/otelcol/logsagentpipeline v0.67.0-devel.0.20250507144401-a64863d1e01a // indirect
6161
github.com/DataDog/datadog-agent/comp/otelcol/logsagentpipeline/logsagentpipelineimpl v0.67.0-devel.0.20250507144401-a64863d1e01a // indirect
6262
github.com/DataDog/datadog-agent/comp/otelcol/otlp/components/exporter/logsagentexporter v0.67.0-devel.0.20250507144401-a64863d1e01a // indirect
63-
github.com/DataDog/datadog-agent/comp/otelcol/otlp/components/exporter/serializerexporter v0.68.0-devel.0.20250604170009-feaecfbfd700 // indirect
63+
github.com/DataDog/datadog-agent/comp/otelcol/otlp/components/exporter/serializerexporter v0.69.0-devel.0.20250630223051-02255cc64e1f // indirect
6464
github.com/DataDog/datadog-agent/comp/serializer/logscompression v0.67.0 // indirect
6565
github.com/DataDog/datadog-agent/comp/serializer/metricscompression v0.67.0 // indirect
6666
github.com/DataDog/datadog-agent/comp/trace/compression/def v0.67.0 // indirect
@@ -134,7 +134,7 @@ require (
134134
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/logs v0.29.0 // indirect
135135
github.com/DataDog/opentelemetry-mapping-go/pkg/quantile v0.29.0 // indirect
136136
github.com/DataDog/sketches-go v1.4.7 // indirect
137-
github.com/DataDog/viper v1.14.0 // indirect
137+
github.com/DataDog/viper v1.14.1-0.20250612143030-1b15c8822ed4 // indirect
138138
github.com/DataDog/zstd v1.5.6 // indirect
139139
github.com/DataDog/zstd_0 v0.0.0-20210310093942-586c1286621f // indirect
140140
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.27.0 // indirect
@@ -254,7 +254,7 @@ require (
254254
github.com/shirou/gopsutil/v4 v4.25.6 // indirect
255255
github.com/shoenig/go-m1cpu v0.1.6 // indirect
256256
github.com/spf13/afero v1.14.0 // indirect
257-
github.com/spf13/cast v1.8.0 // indirect
257+
github.com/spf13/cast v1.9.2 // indirect
258258
github.com/spf13/cobra v1.9.1 // indirect
259259
github.com/spf13/jwalterweatherman v1.1.0 // indirect
260260
github.com/spf13/pflag v1.0.6 // indirect
@@ -344,7 +344,7 @@ require (
344344
go.yaml.in/yaml/v2 v2.4.2 // indirect
345345
go.yaml.in/yaml/v3 v3.0.4 // indirect
346346
golang.org/x/crypto v0.39.0 // indirect
347-
golang.org/x/exp v0.0.0-20250408133849-7e4ce0ab07d0 // indirect
347+
golang.org/x/exp v0.0.0-20250606033433-dcc06ee1d476 // indirect
348348
golang.org/x/net v0.41.0 // indirect
349349
golang.org/x/oauth2 v0.30.0 // indirect
350350
golang.org/x/sync v0.15.0 // indirect

connector/datadogconnector/go.sum

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

exporter/datadogexporter/go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require (
99
github.com/DataDog/datadog-agent/comp/otelcol/logsagentpipeline v0.67.0-devel.0.20250507144401-a64863d1e01a
1010
github.com/DataDog/datadog-agent/comp/otelcol/logsagentpipeline/logsagentpipelineimpl v0.67.0-devel.0.20250507144401-a64863d1e01a
1111
github.com/DataDog/datadog-agent/comp/otelcol/otlp/components/exporter/logsagentexporter v0.67.0-devel.0.20250507144401-a64863d1e01a
12-
github.com/DataDog/datadog-agent/comp/otelcol/otlp/components/exporter/serializerexporter v0.68.0-devel.0.20250604170009-feaecfbfd700
12+
github.com/DataDog/datadog-agent/comp/otelcol/otlp/components/exporter/serializerexporter v0.69.0-devel.0.20250630223051-02255cc64e1f
1313
github.com/DataDog/datadog-agent/comp/otelcol/otlp/components/metricsclient v0.67.0
1414
github.com/DataDog/datadog-agent/comp/otelcol/otlp/testutil v0.67.0
1515
github.com/DataDog/datadog-agent/comp/serializer/logscompression v0.67.0
@@ -158,7 +158,7 @@ require (
158158
github.com/DataDog/mmh3 v0.0.0-20210722141835-012dc69a9e49 // indirect
159159
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/logs v0.29.0 // indirect
160160
github.com/DataDog/sketches-go v1.4.7 // indirect
161-
github.com/DataDog/viper v1.14.0 // indirect
161+
github.com/DataDog/viper v1.14.1-0.20250612143030-1b15c8822ed4 // indirect
162162
github.com/DataDog/zstd v1.5.6 // indirect
163163
github.com/DataDog/zstd_0 v0.0.0-20210310093942-586c1286621f // indirect
164164
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.27.0 // indirect
@@ -370,7 +370,7 @@ require (
370370
github.com/shoenig/go-m1cpu v0.1.6 // indirect
371371
github.com/shurcooL/httpfs v0.0.0-20230704072500-f1e31cf0ba5c // indirect
372372
github.com/spf13/afero v1.14.0 // indirect
373-
github.com/spf13/cast v1.8.0 // indirect
373+
github.com/spf13/cast v1.9.2 // indirect
374374
github.com/spf13/cobra v1.9.1 // indirect
375375
github.com/spf13/jwalterweatherman v1.1.0 // indirect
376376
github.com/spf13/pflag v1.0.6 // indirect
@@ -470,7 +470,7 @@ require (
470470
go.yaml.in/yaml/v2 v2.4.2 // indirect
471471
go.yaml.in/yaml/v3 v3.0.4 // indirect
472472
golang.org/x/crypto v0.39.0 // indirect
473-
golang.org/x/exp v0.0.0-20250408133849-7e4ce0ab07d0 // indirect
473+
golang.org/x/exp v0.0.0-20250606033433-dcc06ee1d476 // indirect
474474
golang.org/x/mod v0.25.0 // indirect
475475
golang.org/x/net v0.41.0 // indirect
476476
golang.org/x/oauth2 v0.30.0 // indirect

exporter/datadogexporter/go.sum

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

exporter/datadogexporter/integrationtest/go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ require (
5757
github.com/DataDog/datadog-agent/comp/otelcol/logsagentpipeline v0.67.0-devel.0.20250507144401-a64863d1e01a // indirect
5858
github.com/DataDog/datadog-agent/comp/otelcol/logsagentpipeline/logsagentpipelineimpl v0.67.0-devel.0.20250507144401-a64863d1e01a // indirect
5959
github.com/DataDog/datadog-agent/comp/otelcol/otlp/components/exporter/logsagentexporter v0.67.0-devel.0.20250507144401-a64863d1e01a // indirect
60-
github.com/DataDog/datadog-agent/comp/otelcol/otlp/components/exporter/serializerexporter v0.68.0-devel.0.20250604170009-feaecfbfd700 // indirect
60+
github.com/DataDog/datadog-agent/comp/otelcol/otlp/components/exporter/serializerexporter v0.69.0-devel.0.20250630223051-02255cc64e1f // indirect
6161
github.com/DataDog/datadog-agent/comp/otelcol/otlp/components/metricsclient v0.67.0 // indirect
6262
github.com/DataDog/datadog-agent/comp/otelcol/otlp/components/statsprocessor v0.67.0 // indirect
6363
github.com/DataDog/datadog-agent/comp/serializer/logscompression v0.67.0 // indirect
@@ -138,7 +138,7 @@ require (
138138
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics v0.29.0 // indirect
139139
github.com/DataDog/opentelemetry-mapping-go/pkg/quantile v0.29.0 // indirect
140140
github.com/DataDog/sketches-go v1.4.7 // indirect
141-
github.com/DataDog/viper v1.14.0 // indirect
141+
github.com/DataDog/viper v1.14.1-0.20250612143030-1b15c8822ed4 // indirect
142142
github.com/DataDog/zstd v1.5.6 // indirect
143143
github.com/DataDog/zstd_0 v0.0.0-20210310093942-586c1286621f // indirect
144144
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.27.0 // indirect
@@ -263,7 +263,7 @@ require (
263263
github.com/shirou/gopsutil/v4 v4.25.6 // indirect
264264
github.com/shoenig/go-m1cpu v0.1.6 // indirect
265265
github.com/spf13/afero v1.14.0 // indirect
266-
github.com/spf13/cast v1.8.0 // indirect
266+
github.com/spf13/cast v1.9.2 // indirect
267267
github.com/spf13/cobra v1.9.1 // indirect
268268
github.com/spf13/jwalterweatherman v1.1.0 // indirect
269269
github.com/spf13/pflag v1.0.6 // indirect
@@ -357,7 +357,7 @@ require (
357357
go.yaml.in/yaml/v2 v2.4.2 // indirect
358358
go.yaml.in/yaml/v3 v3.0.4 // indirect
359359
golang.org/x/crypto v0.39.0 // indirect
360-
golang.org/x/exp v0.0.0-20250408133849-7e4ce0ab07d0 // indirect
360+
golang.org/x/exp v0.0.0-20250606033433-dcc06ee1d476 // indirect
361361
golang.org/x/net v0.41.0 // indirect
362362
golang.org/x/oauth2 v0.30.0 // indirect
363363
golang.org/x/sync v0.15.0 // indirect

0 commit comments

Comments
 (0)