Skip to content

[Instrumentation.AWSLambda] Update dependency to OpenTelemetry.Extensions.AWS - #1289

Merged
Kielek merged 5 commits into
open-telemetry:mainfrom
Kielek:instrumentation-awslambda-update-dependency
Aug 3, 2023
Merged

[Instrumentation.AWSLambda] Update dependency to OpenTelemetry.Extensions.AWS#1289
Kielek merged 5 commits into
open-telemetry:mainfrom
Kielek:instrumentation-awslambda-update-dependency

Conversation

@Kielek

@Kielek Kielek commented Aug 2, 2023

Copy link
Copy Markdown
Member

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()));

@rypdal rypdal Aug 2, 2023

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member 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
Copy Markdown
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.

Comment thread src/OpenTelemetry.Instrumentation.AWSLambda/CHANGELOG.md Outdated
@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
martincostello added a commit to martincostello/opentelemetry-dotnet-contrib that referenced this pull request Mar 27, 2026
Add regression test for issue fixed by open-telemetry#1289.

Resolves open-telemetry#379.
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