-
Notifications
You must be signed in to change notification settings - Fork 31
feat(tracing): add Subsegment wrapper to prevent exposing Amazon.XRayRecorder.Core.Internal #950
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
base: develop
Are you sure you want to change the base?
feat(tracing): add Subsegment wrapper to prevent exposing Amazon.XRayRecorder.Core.Internal #950
Conversation
….Recorder.Core.Internal
Thanks a lot for your first contribution! Please check out our contributing guidelines and don't hesitate to ask whatever you need. |
Hey, @hjgraca! I tried implementing it this way. Please, tell me your thoughts! If there's anything you think might need changes or you believe another approach is better, let me know! |
Hi @JonkaSusaki, thank you so much for working on this PR! We will review this PR as soon as possible and provide feedback. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #950 +/- ##
===========================================
- Coverage 77.39% 77.33% -0.07%
===========================================
Files 271 272 +1
Lines 10874 10876 +2
Branches 1282 1282
===========================================
- Hits 8416 8411 -5
- Misses 2041 2047 +6
- Partials 417 418 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Hi @JonkaSusaki , thank you so much for the pull request, and sorry for the slow response I have been away for the last 2 weeks. |
|
Hey @hjgraca . Thanks for the response! |
Issue number: #603
Summary
Changes
This PR creates a wrapper to prevent exposing internal lib
Amazon.XRayRecorder
.libraries/src/AWS.Lambda.Powertools.Tracing/Internal/TracingSubsegment.cs
to place the wrapper;libraries/src/AWS.Lambda.Powertools.Tracing/Tracing.cs
to include the wrapper;User experience
Before the changes, users had to include the reference to
Amazon.XRay.Recorder.Core.Internal.Entities
to use theSubsegment
class. Now, theTracingSubsegment
was created and users can now import them using theAWS.Lambda.Powertools.Tracing.Internal
reference.Checklist
Please leave checklist items unchecked if they do not apply to your change.
Is this a breaking change?
NO
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.