-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: otel updates for latest spec doc #5
Changes from 8 commits
9e6baf8
f0909bc
09319ee
bdfa0d6
1a64d5d
cd1843f
85d34b7
adf3be3
700db86
55b67b0
9bbe060
d5f1c5d
9e12418
cd1856c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/.nyc_output | ||
/docs/ | ||
/out/ | ||
/build/ | ||
**/build/ | ||
system-test/secrets.js | ||
system-test/*key.json | ||
*.lock | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,23 @@ export interface PubsubMessage | |
* @private | ||
*/ | ||
publishSchedulerSpan?: tracing.Span; | ||
|
||
/** | ||
* If this is a message being received from a subscription, expose the ackId. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think expose here just means expose to the other parts of the client library and not users right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep. I need to make a whole separate pass of converting |
||
* | ||
* @private | ||
* @internal | ||
*/ | ||
ackId?: string; | ||
|
||
/** | ||
* If this is a message being received from a subscription, expose the exactly | ||
* once delivery flag. | ||
* | ||
* @private | ||
* @internal | ||
*/ | ||
isExactlyOnceDelivery?: boolean; | ||
} | ||
|
||
/** | ||
|
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.
Technically not part of this PR but why is this necessary? It looks like the same information is already passed when
createPublisherSpan
is called.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.
Mentioned over chat, but the trouble is that, since everything is async, it's possible that the code could get to the part that sets the initial span name before the project ID is resolved. In that case, the project ID will become
{{project}}
in the final span, which isn't great. The project ID must be resolved by this point, so this just makes sure the right names are in place.