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

chore(decide): Add missing span instrumentation #17910

Merged
merged 4 commits into from
Oct 11, 2023
Merged

Conversation

neilkakkar
Copy link
Collaborator

Problem

Our spans are missing some information of what happens between the request to get cohorts, and the request to get feature flags.

During spikes, we're losing upto 2s in between, which is insane. See: https://posthog.sentry.io/performance/posthog:948a2386c4124c8bb2433cf859a1b510/?breakdown=none&project=1899813&query=&showTransactions=p100&sort=-transaction.duration&statsPeriod=14d&transaction=%2Fdecide%2F%5B%23%5D.%2A

This helps us figure out if it has anything to do with feature flag parsing. I'd be surprised if it does, but lets see 👀

Changes

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

How did you test this code?

Run locally, see span in sentry

@neilkakkar neilkakkar marked this pull request as ready for review October 11, 2023 09:33
@neilkakkar neilkakkar enabled auto-merge (squash) October 11, 2023 10:23
@neilkakkar neilkakkar merged commit 33f8ad9 into master Oct 11, 2023
67 checks passed
@neilkakkar neilkakkar deleted the sentry-span branch October 11, 2023 10:39
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