Skip to content

Decrease sentry_sdk.errors log level to INFO #19951

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

Merged
merged 1 commit into from
Apr 2, 2025

Conversation

natefoo
Copy link
Member

@natefoo natefoo commented Apr 2, 2025

sentry_sdk must've added a bunch of debug logging because each request is now generating log messages like:

sentry_sdk.errors DEBUG 2025-04-02 14:30:58,764 [pN:main.1,p:1253439,tN:MainThread] [ASGI] Created transaction (continuing trace): <Transaction(name='https://127.0.0.1:8080/api/datasets/c0ffee', op='http.server', trace_id='aa4b3b1de8364a1da6dff126f5d9e729', span_id='0059c3cad468e583', parent_span_id=None, sampled=None, source=<TransactionSource.URL: 'url'>, origin='auto.http.starlette')>
sentry_sdk.errors DEBUG 2025-04-02 14:30:58,764 [pN:main.1,p:1253439,tN:MainThread] [ASGI] Set transaction name and source on transaction: 'https://127.0.0.1:8080/api/datasets/c0ffee' / 'url'
sentry_sdk.errors DEBUG 2025-04-02 14:30:58,764 [pN:main.1,p:1253439,tN:MainThread] [Tracing] Discarding <http.server> transaction <https://127.0.0.1:8080/api/datasets/c0ffee> because it's not included in the random sample (sampling rate = 0.2)
sentry_sdk.errors DEBUG 2025-04-02 14:30:58,764 [pN:main.1,p:1253439,tN:MainThread] [ASGI] Started transaction: <Transaction(name='https://127.0.0.1:8080/api/datasets/c0ffee', op='http.server', trace_id='aa4b3b1de8364a1da6dff126f5d9e729', span_id='0059c3cad468e583', parent_span_id=None, sampled=False, source=<TransactionSource.URL: 'url'>, origin='auto.http.starlette')>
sentry_sdk.errors DEBUG 2025-04-02 14:30:58,765 [pN:main.1,p:1253439,tN:MainThread] [FastAPI] Set transaction name and source on scope: /api/datasets/{dataset_id} / route
uvicorn.access INFO 2025-04-02 14:30:58,799 [pN:main.1,p:1253439,tN:MainThread] 173.13.209.137:0 - "GET /api/datasets/c0ffee HTTP/1.0" 200
sentry_sdk.errors DEBUG 2025-04-02 14:30:58,801 [pN:main.1,p:1253439,tN:MainThread] Discarding transaction because sampled = False

@github-actions github-actions bot added this to the 25.0 milestone Apr 2, 2025
@dannon dannon merged commit c45f2e5 into galaxyproject:dev Apr 2, 2025
53 of 56 checks passed
Copy link

github-actions bot commented Apr 2, 2025

This PR was merged without a "kind/" label, please correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants