-
Notifications
You must be signed in to change notification settings - Fork 112
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
SNOW-1637215: Add describe query telemetry #2622
base: main
Are you sure you want to change the base?
Conversation
stack = traceback.extract_stack(limit=10)[:-1] | ||
if len(stack) >= 2: | ||
stack_trace = [frame.line for frame in stack] | ||
else: | ||
stack_trace = None |
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.
are we doing this to figure out which is the biggest contributor of describe queries?
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.
yes
TYPE_DESCRIBE_QUERY_DETAILS = "snowpark_describe_query_details" | ||
SQL_TEXT = "sql_text" | ||
E2E_TIME = "e2e_time" | ||
STACK_TRACE = "stack_trace" |
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.
It's good that we're capturing the stack trace. But I imagine we'll need to further process it to extract the specific operations resulting in describe queries?
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.
yea, we can do the parsing on the dashboard side
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.
LGTM, just had one question.
0ee4bda
to
56c7f03
Compare
stack = traceback.extract_stack(limit=10)[:-1] | ||
if len(stack) >= 2: | ||
stack_trace = [frame.line for frame in stack] | ||
else: |
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.
why when len(stack) < 2: the stack_trace is None?
Which Jira issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes SNOW-1637215
Fill out the following pre-review checklist:
Please describe how your code solves the related issue.
Add telemetry for describe query mentioned in https://docs.google.com/document/d/1DAN1I99BQd1CBBu_pLvWb9vLReTC7HIbfppxeVbXCSg/edit?tab=t.0#heading=h.r285g4qcslsz