-
Notifications
You must be signed in to change notification settings - Fork 302
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
[Instrumentation.AWSLambda] Update dependency to OpenTelemetry.Extensions.AWS #1289
[Instrumentation.AWSLambda] Update dependency to OpenTelemetry.Extensions.AWS #1289
Conversation
.CreateEmpty() | ||
.AddTelemetrySdk() | ||
.AddAttributes(AWSLambdaResourceDetector.Detect())); | ||
builder.ConfigureResource(x => x.AddDetector(new AWSLambdaResourceDetector())); |
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.
Is this changed triggered by OpenTelemetry.Extensions.AWS
update ?
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.
ConfigureResource is part of the API from newer OTel SDK package.
Old version should still work, but if your user adjust resources manually it should keep changes in place.
Previous version was overriding everything.
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.
I think this is a great change. So far we were not able to actually use the resource functionality since we also needed some custom attributes.
Towards #1268
Changes
Update dependency to OpenTelemetry.Extensions.AWS
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes[ ] Design discussion issue #[ ] Changes in public API reviewed