-
Notifications
You must be signed in to change notification settings - Fork 103
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(observability): add tracing spans to Session #2121
Conversation
909108d
to
d670cd6
Compare
This change adds tracing spans to Session for methods: * create * getMetadata * keepAlive and corresponding tests. Updates googleapis#2079 Built from PR googleapis#2087 Updates googleapis#2114
d670cd6
to
62a9ba8
Compare
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.
I believe we dont need this PR. All the important spans are already there for sessions.
Lete keep this on hold and move to other PRs.
@@ -431,6 +454,10 @@ export class Session extends common.GrpcServiceObject { | |||
optionsOrCallback?: CallOptions | KeepAliveCallback, | |||
cb?: KeepAliveCallback | |||
): void | Promise<KeepAliveResponse> { | |||
// NOTE: Please do not trace Ping as it gets quite spammy |
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.
No need for this comment, this comment was already added in the caller of this method.
resp.databaseRole = resp.creatorRole; | ||
delete resp.creatorRole; | ||
this.metadata = resp; | ||
|
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.
remove for this method. We dont need it for now. Can add later if we need
return; | ||
} | ||
const q = {opts: database.observabilityConfig}; | ||
return startTrace('Session.create', q, span => { |
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.
I think we dont need this as well, as we dont use single session creation , instead we use batch create session
Alright, thanks @surbhigarg92! Sure we can put it on ice and move onto others! |
Deemed as unnecessary! |
This change adds tracing spans to Session for methods:
and corresponding tests.
Updates #2079
Built from PR #2087
Updates #2114