-
Notifications
You must be signed in to change notification settings - Fork 286
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
AWS Lambda wrapper enhancements: Trace methods enhancements and Activity creation behaviour changes. #408
AWS Lambda wrapper enhancements: Trace methods enhancements and Activity creation behaviour changes. #408
Conversation
- added optional parent context and tags parameters to tracing methods of AWSLambdaWrapper - changed parent related behaviour of OnFunctionStart method - added option flag for ignoring X-Ray propagation
…lback when parent context is not provided (open-telemetry#403)
Codecov Report
@@ Coverage Diff @@
## main #408 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 167 168 +1
Lines 5100 5125 +25
=====================================
- Misses 5100 5125 +25
|
src/OpenTelemetry.Contrib.Instrumentation.AWSLambda/Implementation/AWSLambdaWrapper.cs
Outdated
Show resolved
Hide resolved
…e function trigger and lambda context 2. added parent context extraction for http triggered AWS Lambdas 3. aligned unit tests accordingly (open-telemetry#403)
src/OpenTelemetry.Contrib.Instrumentation.AWSLambda/Implementation/AWSLambdaWrapper.cs
Outdated
Show resolved
Hide resolved
src/OpenTelemetry.Contrib.Instrumentation.AWSLambda/Implementation/AWSLambdaWrapper.cs
Outdated
Show resolved
Hide resolved
src/OpenTelemetry.Contrib.Instrumentation.AWSLambda/Implementation/AWSLambdaWrapper.cs
Show resolved
Hide resolved
src/OpenTelemetry.Contrib.Instrumentation.AWSLambda/Implementation/AWSLambdaUtils.cs
Outdated
Show resolved
Hide resolved
src/OpenTelemetry.Contrib.Instrumentation.AWSLambda/Implementation/AWSLambdaUtils.cs
Outdated
Show resolved
Hide resolved
src/OpenTelemetry.Contrib.Instrumentation.AWSLambda/Implementation/AWSLambdaUtils.cs
Show resolved
Hide resolved
src/OpenTelemetry.Contrib.Instrumentation.AWSLambda/Implementation/AWSLambdaUtils.cs
Outdated
Show resolved
Hide resolved
…ls.GetFunctionDefaultTags and used them for Activity creation - refactored AWSLambdaWrapper.Trace methods: removed duplicate code - extended Trace methods xml-doc (open-telemetry#403)
@srprash Could you please review this PR? |
- made ILambdaContext argument mandatory - removed Trace methods without ILambdaContext - added Trace overloads without input argument (input only with ILambdaContext)
src/OpenTelemetry.Contrib.Instrumentation.AWSLambda/Implementation/AWSLambdaWrapper.cs
Show resolved
Hide resolved
src/OpenTelemetry.Contrib.Instrumentation.AWSLambda/Implementation/AWSLambdaUtils.cs
Outdated
Show resolved
Hide resolved
src/OpenTelemetry.Contrib.Instrumentation.AWSLambda/Implementation/AWSLambdaUtils.cs
Outdated
Show resolved
Hide resolved
src/OpenTelemetry.Contrib.Instrumentation.AWSLambda/Implementation/AWSLambdaUtils.cs
Outdated
Show resolved
Hide resolved
…tion/AWSLambdaWrapper.cs review (open-telemetry#403) Co-authored-by: Christian Neumüller <[email protected]>
…/github.com/rypdal/opentelemetry-dotnet-contrib into issue/AWS-Lambda-wrapper-and-parent-context
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.
Thank you for addressing all my comments!
src/OpenTelemetry.Contrib.Instrumentation.AWSLambda/Implementation/AWSLambdaWrapper.cs
Outdated
Show resolved
Hide resolved
src/OpenTelemetry.Contrib.Instrumentation.AWSLambda/Implementation/AWSLambdaWrapper.cs
Outdated
Show resolved
Hide resolved
…tion/AWSLambdaWrapper.cs Co-authored-by: Christian Neumüller <[email protected]>
…tion/AWSLambdaWrapper.cs Co-authored-by: Christian Neumüller <[email protected]>
Hello! From my and @rypdal's perspective, this PR would be ready for merging. |
Please add a CHANGELOG entry and we can merge this. |
@utpilla: CHANGELOG entry has been added. |
@rypdal Please follow the steps mentioned here if you want to request a package release: https://github.com/open-telemetry/opentelemetry-dotnet-contrib/blob/main/CONTRIBUTING.md#how-to-request-for-release-of-package |
Thanks to @Oberon00 for the review ! |
Changes