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(sentry-sdk): add traces #10745

Merged
merged 3 commits into from
Jul 13, 2022
Merged

chore(sentry-sdk): add traces #10745

merged 3 commits into from
Jul 13, 2022

Conversation

guidoiaquinti
Copy link
Contributor

@guidoiaquinti guidoiaquinti commented Jul 12, 2022

Problem

While working on #10743 I've realised we are running without traces enabled.

Changes

Set the traces_sample_rate to 0.1% (we will bump the latter little by little after monitoring the usage).

How did you test this code?

I didn't.

environment=os.getenv("SENTRY_ENVIRONMENT", "production"),
sample_rate=1.0, # Configures the sample rate for error events, in the range of 0.0 to 1.0. The default is 1.0 which means that 100% of error events are sent. If set to 0.1 only 10% of error events will be sent. Events are picked randomly.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The SDK default was already 1.0 (see code comment)

@guidoiaquinti guidoiaquinti changed the title chore(sentry-sdk): add SqlAlchemy + traces chore(sentry-sdk): add traces Jul 13, 2022
@guidoiaquinti guidoiaquinti marked this pull request as ready for review July 13, 2022 08:11
@guidoiaquinti guidoiaquinti requested a review from macobo July 13, 2022 08:13
send_default_pii=True,
environment=os.getenv("SENTRY_ENVIRONMENT", "production"),
traces_sample_rate=0.1, # A number between 0 and 1, controlling the percentage chance a given transaction will be sent to Sentry. (0 represents 0% while 1 represents 100%.) Applies equally to all transactions created in the app.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is 10% not 0.1% as advertised in the PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True brainfart 😄 thanks for catching this

@macobo
Copy link
Contributor

macobo commented Jul 13, 2022

I'm lacking context why we care about traces here? :) What is the problem we're solving?

@guidoiaquinti
Copy link
Contributor Author

I'm lacking context why we care about traces here? :) What is the problem we're solving?

Yesterday @timgl was trying to investigate a performance issue reported by a customer. As we unfortunately do not have a tracing solution available (yet) the task became more difficult than expected.

Mid-long term plan is to have a tracing solution available via our Helm chart but in the meantime let's leverage what Sentry can provide us.

Co-authored-by: Karl-Aksel Puulmann <macobo@users.noreply.github.com>
Copy link
Contributor

@macobo macobo left a comment

Choose a reason for hiding this comment

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

I don't think this will be of any use debugging performance issues we typically run into but also not going to block this as you think it does :)

Approved pending fixing the percentage.

@guidoiaquinti guidoiaquinti enabled auto-merge (squash) July 13, 2022 09:17
@guidoiaquinti guidoiaquinti merged commit 599da6d into master Jul 13, 2022
@guidoiaquinti guidoiaquinti deleted the sentry_sdk_config branch July 13, 2022 09:17
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