-
Notifications
You must be signed in to change notification settings - Fork 36
Inferred spans for Lambda function URLs #247
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
Conversation
… infer the span correctly
…eted span on invocation finish
… follows command pattern. Update imports
…e attributes for JS
Codecov Report
@@ Coverage Diff @@
## main #247 +/- ##
==========================================
- Coverage 83.52% 83.13% -0.39%
==========================================
Files 35 36 +1
Lines 1335 1399 +64
Branches 283 295 +12
==========================================
+ Hits 1115 1163 +48
- Misses 196 209 +13
- Partials 24 27 +3
Continue to review full report at Codecov.
|
"span.type": "http", | ||
"resource.name": domain + path, |
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.
💯
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.
👍🏼
Yup! My bad, this was not supposed to be in the change list
…On Fri, Nov 19, 2021, 2:55 PM Harvinder Ghotra ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/trace/listener.ts
<#247 (comment)>
:
> @@ -147,8 +159,12 @@ export class TraceListener {
...this.stepFunctionContext,
};
}
-
- if (parentSpanContext !== null) {
+ if (this.inferredSpan !== (null || undefined)) {
Is there a reason for writing it this way? This basically reduces to:
this.inferredSpan !== undefined
Perhaps, it should just be:
⬇️ Suggested change
- if (this.inferredSpan !== (null || undefined)) {
+ if (this.inferredSpan) {
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#247 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMGISL4XLAIL25KIPFVGSLUM22TXANCNFSM5IM4STQQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Co-authored-by: Harvinder Ghotra <[email protected]>
What does this PR do?
Supports inferred spans for lambda function URLs
Motivation
Testing Guidelines
Additional Notes
Types of Changes
Check all that apply