-
Notifications
You must be signed in to change notification settings - Fork 2.9k
[internal/aws] migrate to AWS v2 SDK #40123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1c3493c
03a4baa
b0263cf
f45312e
750e990
1612108
44a8303
f465b53
7cd18b6
ce37d3b
736bce9
9f58585
5df4d44
08f834f
d0ae760
e162e7a
69fac41
9eceb80
f384547
be5cba7
ed2450b
6eb2f85
d8d7673
8dd87ef
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,7 +90,8 @@ func TestTelemetryEnabled(t *testing.T) { | |
assert.EqualValues(t, 1, sink.StopCount.Load()) | ||
assert.True(t, sink.HasRecording()) | ||
got := sink.Rotate() | ||
assert.EqualValues(t, 0, *got.BackendConnectionErrors.HTTPCode4XXCount) | ||
assert.EqualValues(t, 1, *got.BackendConnectionErrors.HTTPCode4XXCount) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. BackendConnectionErrors.OtherCount was 1 in version 1, but HTTPCode4XXCount was 1 more after v2 conversion |
||
assert.EqualValues(t, 0, *got.BackendConnectionErrors.OtherCount) | ||
} | ||
|
||
func BenchmarkForTracesExporter(b *testing.B) { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should propagate contexts through when possible instead of defining a new one. E.g. for this exporter
opentelemetry-collector-contrib/exporter/awscloudwatchlogsexporter/factory.go
Lines 42 to 48 in 08f834f
_ context.Context
. We can update it toctx context.Context
and pipe it through.We can then change this function signature to:
Something similar can be done for awsemfexporter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The newCwLogsExporter will receive a factor like..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah exactly, basically w/e context is passed into
createLogsExporter
will be propagated through. I think you're right that currently it's justcontext.Background()
right now, but if it ever changes it'll only need to be changed in one spot.