Skip to content
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

[vtadmin] tracing refactor #7649

Merged

Conversation

ajm188
Copy link
Contributor

@ajm188 ajm188 commented Mar 9, 2021

Description

This PR does two things:

  1. Refactors to support code reuse without over tracing. This is mostly a process of:
    a. Move code to private function
    b. Do tracing in public function, then call private function.
    c. Other internal code that was calling the public function, now calls the private, and we don't double trace (e.g. it would not make sense for VTGateProxy.Ping to create a root span called "VTGateProxy.PingContext", which it would if we tried to add tracing there while also having Ping call PingContext)

  2. Instrument tracing through more vtadmin API endpoints.

  3. (okay I lied, three things) Add some helpers for common span annotations.

Related Issue(s)

Checklist

  • Should this PR be backported? no
  • Tests were added or are not required n/a
  • Documentation was added or is not required n/a

Deployment Notes

Impacted Areas in Vitess

Components that this PR will affect:

  • Query Serving
  • VReplication
  • Cluster Management
  • Build/CI
  • VTAdmin

…cular import, trace vtsql

Signed-off-by: Andrew Mason <amason@slack-corp.com>
Signed-off-by: Andrew Mason <amason@slack-corp.com>
Signed-off-by: Andrew Mason <amason@slack-corp.com>
…blet(s)`

Signed-off-by: Andrew Mason <amason@slack-corp.com>
Signed-off-by: Andrew Mason <amason@slack-corp.com>
Signed-off-by: Andrew Mason <amason@slack-corp.com>
Copy link
Contributor

@doeg doeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank youuuu

@rohit-nayak-ps rohit-nayak-ps merged commit fb0b16a into vitessio:master Mar 9, 2021
@askdba askdba added the Component: VTAdmin VTadmin interface label Mar 10, 2021
@askdba askdba added this to the v10.0 milestone Mar 10, 2021
@doeg doeg added this to In progress in VTAdmin via automation Mar 16, 2021
@doeg doeg moved this from In progress to Done in VTAdmin Mar 16, 2021
@ajm188 ajm188 deleted the am_vtadmin_tracing_refactor branch May 29, 2021 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: VTAdmin VTadmin interface
Projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants