Skip to content

Commit c8bac89

Browse files
LZiHaNAkhigbeEromo
authored andcommitted
[exporter/datadogexporter] Migrating datadog exporter to use aws sdk v2 (open-telemetry#36797)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Migrating datadog exporter to use aws sdk v2 <!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. --> #### Link to tracking issue refer to open-telemetry#36699 <!--Describe what testing was performed and which tests were added.--> #### Testing passes tests. updated mock client implementations to support the new SDK interfaces. <!--Describe the documentation added.--> #### Documentation no need to update. <!--Please delete paragraphs that you did not use before submitting.-->
1 parent f93490a commit c8bac89

File tree

16 files changed

+480
-149
lines changed

16 files changed

+480
-149
lines changed

connector/datadogconnector/go.mod

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,20 @@ require (
115115
github.com/alecthomas/participle/v2 v2.1.1 // indirect
116116
github.com/antchfx/xmlquery v1.4.3 // indirect
117117
github.com/antchfx/xpath v1.3.3 // indirect
118-
github.com/aws/aws-sdk-go v1.55.5 // indirect
118+
github.com/aws/aws-sdk-go-v2 v1.32.7 // indirect
119+
github.com/aws/aws-sdk-go-v2/config v1.28.6 // indirect
120+
github.com/aws/aws-sdk-go-v2/credentials v1.17.47 // indirect
121+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.22 // indirect
122+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.25 // indirect
123+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.25 // indirect
124+
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect
125+
github.com/aws/aws-sdk-go-v2/service/ec2 v1.196.0 // indirect
126+
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 // indirect
127+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.6 // indirect
128+
github.com/aws/aws-sdk-go-v2/service/sso v1.24.7 // indirect
129+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.6 // indirect
130+
github.com/aws/aws-sdk-go-v2/service/sts v1.33.2 // indirect
131+
github.com/aws/smithy-go v1.22.1 // indirect
119132
github.com/benbjohnson/clock v1.3.5 // indirect
120133
github.com/beorn7/perks v1.0.1 // indirect
121134
github.com/briandowns/spinner v1.23.0 // indirect
@@ -165,7 +178,6 @@ require (
165178
github.com/iancoleman/strcase v0.3.0 // indirect
166179
github.com/imdario/mergo v0.3.16 // indirect
167180
github.com/inconshreveable/mousetrap v1.1.0 // indirect
168-
github.com/jmespath/go-jmespath v0.4.0 // indirect
169181
github.com/josharian/intern v1.0.0 // indirect
170182
github.com/json-iterator/go v1.1.12 // indirect
171183
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 // indirect

connector/datadogconnector/go.sum

Lines changed: 28 additions & 2 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: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ require (
3838
github.com/DataDog/opentelemetry-mapping-go/pkg/quantile v0.22.0
3939
github.com/DataDog/sketches-go v1.4.6 // indirect
4040
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.25.0
41-
github.com/aws/aws-sdk-go v1.55.5
41+
github.com/aws/aws-sdk-go v1.55.5 // indirect
4242
github.com/cenkalti/backoff/v4 v4.3.0
4343
github.com/google/go-cmp v0.6.0
4444
github.com/open-telemetry/opentelemetry-collector-contrib/connector/datadogconnector v0.117.0
@@ -91,6 +91,10 @@ require (
9191
)
9292

9393
require (
94+
github.com/aws/aws-sdk-go-v2 v1.32.7
95+
github.com/aws/aws-sdk-go-v2/config v1.28.6
96+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.22
97+
github.com/aws/aws-sdk-go-v2/service/ec2 v1.196.0
9498
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/datadog v0.117.0
9599
go.opentelemetry.io/collector/component/componenttest v0.117.0
96100
go.opentelemetry.io/collector/consumer/consumererror v0.117.0
@@ -157,6 +161,16 @@ require (
157161
github.com/antchfx/xmlquery v1.4.3 // indirect
158162
github.com/antchfx/xpath v1.3.3 // indirect
159163
github.com/armon/go-metrics v0.4.1 // indirect
164+
github.com/aws/aws-sdk-go-v2/credentials v1.17.47 // indirect
165+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.25 // indirect
166+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.25 // indirect
167+
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect
168+
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 // indirect
169+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.6 // indirect
170+
github.com/aws/aws-sdk-go-v2/service/sso v1.24.7 // indirect
171+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.6 // indirect
172+
github.com/aws/aws-sdk-go-v2/service/sts v1.33.2 // indirect
173+
github.com/aws/smithy-go v1.22.1 // indirect
160174
github.com/benbjohnson/clock v1.3.5 // indirect
161175
github.com/beorn7/perks v1.0.1 // indirect
162176
github.com/bmatcuk/doublestar/v4 v4.7.1 // indirect

exporter/datadogexporter/go.sum

Lines changed: 28 additions & 0 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: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,20 @@ require (
127127
github.com/antchfx/xpath v1.3.3 // indirect
128128
github.com/armon/go-metrics v0.4.1 // indirect
129129
github.com/aws/aws-sdk-go v1.55.5 // indirect
130+
github.com/aws/aws-sdk-go-v2 v1.32.7 // indirect
131+
github.com/aws/aws-sdk-go-v2/config v1.28.6 // indirect
132+
github.com/aws/aws-sdk-go-v2/credentials v1.17.47 // indirect
133+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.22 // indirect
134+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.25 // indirect
135+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.25 // indirect
136+
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect
137+
github.com/aws/aws-sdk-go-v2/service/ec2 v1.196.0 // indirect
138+
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 // indirect
139+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.6 // indirect
140+
github.com/aws/aws-sdk-go-v2/service/sso v1.24.7 // indirect
141+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.6 // indirect
142+
github.com/aws/aws-sdk-go-v2/service/sts v1.33.2 // indirect
143+
github.com/aws/smithy-go v1.22.1 // indirect
130144
github.com/benbjohnson/clock v1.3.5 // indirect
131145
github.com/beorn7/perks v1.0.1 // indirect
132146
github.com/briandowns/spinner v1.23.0 // indirect

exporter/datadogexporter/integrationtest/go.sum

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

0 commit comments

Comments
 (0)