Skip to content
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

Merged

Conversation

Kielek
Copy link
Contributor

@Kielek Kielek commented Aug 2, 2023

Towards #1268

Changes

Update dependency to OpenTelemetry.Extensions.AWS

For significant contributions please make sure you have completed the following items:

  • Appropriate CHANGELOG.md updated for non-trivial changes
  • [ ] Design discussion issue #
  • [ ] Changes in public API reviewed

@Kielek Kielek requested a review from a team August 2, 2023 05:56
@github-actions github-actions bot requested review from Oberon00 and rypdal August 2, 2023 05:56
@Kielek Kielek added the comp:instrumentation.awslambda Things related to OpenTelemetry.Instrumentation.AWSLambda label Aug 2, 2023
.CreateEmpty()
.AddTelemetrySdk()
.AddAttributes(AWSLambdaResourceDetector.Detect()));
builder.ConfigureResource(x => x.AddDetector(new AWSLambdaResourceDetector()));
Copy link
Contributor

@rypdal rypdal Aug 2, 2023

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 ?

Copy link
Contributor Author

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.

Copy link
Member

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.

@Kielek Kielek merged commit 2e15a8a into open-telemetry:main Aug 3, 2023
@Kielek Kielek deleted the instrumentation-awslambda-update-dependency branch August 3, 2023 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:instrumentation.awslambda Things related to OpenTelemetry.Instrumentation.AWSLambda
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants