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

Enable cloud tracing #26

Merged
merged 8 commits into from
Sep 23, 2024
Merged

Enable cloud tracing #26

merged 8 commits into from
Sep 23, 2024

Conversation

chapati23
Copy link
Collaborator

@chapati23 chapati23 commented Sep 18, 2024

Description

This simplifies grouping function logs by trace id (think: a specific function execution).

Concretely returns locks from this:

image

to this:

Pasted_Image_18_09_24__16_13

Clicking that new little blue icon should allow you to filter only logs belonging to that function execution:

image

And you should end up seeing only the logs belonging to this particular function execution:

Screenshot 2024-09-18 at 16 38 52

How to test

  • Check out this branch locally
  • Make sure your local gcloud cli is pointed to the oracle relayer staging project via npm run staging
  • Run npm run logs:url
  • Click on the Logs Explorer URL printed out in your CLI (the first and longest of the three)
  • Click a few of the blue trace filter icons shown above to confirm it works

it errors in cloud builds because it's importing
files that aren't available during the build
...in an attempt to make `tf apply` more stable and not
constantly re-deploy the function even though no source
code has changed
this seems to be gcloud's default for its auto-generated trace ids
we want to show the newest logs of the last 60mins per default
@chapati23 chapati23 force-pushed the feat/enable-cloud-tracing branch from 8d4bfdd to 8019f8e Compare September 18, 2024 14:45
@chapati23 chapati23 merged commit 66be7f0 into main Sep 23, 2024
1 check passed
@chapati23 chapati23 deleted the feat/enable-cloud-tracing branch September 23, 2024 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants