René's URL Explorer Experiment


Title: Log message formatting options · Issue #228 · getsentry/sentry-python · GitHub

Open Graph Title: Log message formatting options · Issue #228 · getsentry/sentry-python

X Title: Log message formatting options · Issue #228 · getsentry/sentry-python

Description: The raven client had a defined log handler which let you use python's built in logging configuration mechanisms to control how log messages looked when they were passed to sentry, however the new python-sdk does not appear to have any eq...

Open Graph Description: The raven client had a defined log handler which let you use python's built in logging configuration mechanisms to control how log messages looked when they were passed to sentry, however the new p...

X Description: The raven client had a defined log handler which let you use python's built in logging configuration mechanisms to control how log messages looked when they were passed to sentry, however the n...

Opengraph URL: https://github.com/getsentry/sentry-python/issues/228

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Log message formatting options","articleBody":"The raven client had a defined log handler which let you use python's built in logging configuration mechanisms to control how log messages looked when they were passed to sentry, however the new python-sdk does not appear to have any equivalent option. I have a number of apps where I have log messages managed by [`structlog`](http://www.structlog.org/en/stable/), where `structlog` hooks into python's logging and formatts everything nicely with pretty readable colours, nicely formatted timestamps, before it gets sent to stdout, however the combination of how `python-sdk` hooks into logging, and the formatting of these messages means that the new sentry-sdk logging integration/handling makes an absolute mess of things producing unhelpful results in sentry.io like dozens of variations of `[2m2019-01-03T07:16:00.573607Z[0m [[31m[1merror [0m] [1mcan_send_message is Fals...` each with one recorded error event, instead of a single `can_send_message is False` with the correct count of error events. \r\n\r\nWhat is the mechanism for the sentry-sdk to work with python's logging formatters and libraries such as structlog?","author":{"url":"https://github.com/techdragon","@type":"Person","name":"techdragon"},"datePublished":"2019-01-03T07:29:23Z","url":"https://github.com/getsentry/sentry-python/issues/228"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c9e82e31-bd03-54e7-11ba-385f0338704b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE5D6:20F35A:943585:C9180B:6B053B3F
html-safe-noncedd977d11eece488cd91a3463eeb1c141716b3fbf164c510a8b87bb1c2e7ef24a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUQ2OjIwRjM1QTo5NDM1ODU6QzkxODBCOjZCMDUzQjNGIiwidmlzaXRvcl9pZCI6Ijc0NDk5NzY2MjMzMzc5MTMxNTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9025f170a7ef28ac472259401c78406bea78da4835a7d66246ee2be5ad1debdd
hovercard-subject-tagissue:395478551
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-python/228/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9da268ae4c7317a3d585fabbb8d386523d4012cd78b04cff78ef59d9ef6ace16/getsentry/sentry-python/issues/228
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9da268ae4c7317a3d585fabbb8d386523d4012cd78b04cff78ef59d9ef6ace16/getsentry/sentry-python/issues/228
og:image:altThe raven client had a defined log handler which let you use python's built in logging configuration mechanisms to control how log messages looked when they were passed to sentry, however the new p...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametechdragon
hostnamegithub.com
expected-hostnamegithub.com
None854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id137814779
octolytics-dimension-repository_nwogetsentry/sentry-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id137814779
octolytics-dimension-repository_network_root_nwogetsentry/sentry-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release220e980097d94ce616d5d11fbd5316d208e3fc93
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/issues/228#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fissues%2F228
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fissues%2F228
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-python
Reloadhttps://github.com/getsentry/sentry-python/issues/228
Reloadhttps://github.com/getsentry/sentry-python/issues/228
Reloadhttps://github.com/getsentry/sentry-python/issues/228
getsentryhttps://github.com/getsentry
sentry-pythonhttps://github.com/getsentry/sentry-python
Codehttps://github.com/getsentry/sentry-python
Issues342 (342)https://github.com/getsentry/sentry-python/issues
Pull requests37 (37)https://github.com/getsentry/sentry-python/pulls
Discussionshttps://github.com/getsentry/sentry-python/discussions
Actionshttps://github.com/getsentry/sentry-python/actions
Security and quality2 (2)https://github.com/getsentry/sentry-python/security
Insightshttps://github.com/getsentry/sentry-python/insights
https://github.com/getsentry/sentry-python
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-python/issues/228
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-python/issues/228
Log message formatting optionshttps://github.com/getsentry/sentry-python/issues/228#top
Bughttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Bug%22
Help Wantedhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Help%20Wanted%22
Integration: Logginghttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Integration%3A%20Logging%22
New Integrationhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22New%20Integration%22
Triagedhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Triaged%22
https://github.com/techdragon
techdragonhttps://github.com/techdragon
on Jan 3, 2019https://github.com/getsentry/sentry-python/issues/228#issue-395478551
structloghttp://www.structlog.org/en/stable/
Nexthttps://github.com/getsentry/sentry-python/issues/228?timeline_page=1
https://github.com/untitaker
untitakerhttps://github.com/untitaker
on Jan 3, 2019https://github.com/getsentry/sentry-python/issues/228#issuecomment-451090541
https://github.com/techdragon
techdragonhttps://github.com/techdragon
on Jan 4, 2019https://github.com/getsentry/sentry-python/issues/228#issuecomment-451332116
https://docs.sentry.io/clients/python/integrations/logging/https://docs.sentry.io/clients/python/integrations/logging/
http://www.structlog.org/en/stable/standard-library.html#rendering-using-structlog-based-formatters-within-logginghttp://www.structlog.org/en/stable/standard-library.html#rendering-using-structlog-based-formatters-within-logging
https://github.com/untitaker
untitakerhttps://github.com/untitaker
on Jan 4, 2019https://github.com/getsentry/sentry-python/issues/228#issuecomment-451492558
https://github.com/keramblock
keramblockhttps://github.com/keramblock
on Mar 22, 2019https://github.com/getsentry/sentry-python/issues/228#issuecomment-475616306
https://github.com/untitaker
untitakerhttps://github.com/untitaker
on Mar 22, 2019https://github.com/getsentry/sentry-python/issues/228#issuecomment-475616910
https://github.com/md1023
md1023https://github.com/md1023
on Mar 22, 2019https://github.com/getsentry/sentry-python/issues/228#issuecomment-475625547
https://github.com/keramblock
keramblockhttps://github.com/keramblock
on Mar 22, 2019https://github.com/getsentry/sentry-python/issues/228#issuecomment-475642948
https://user-images.githubusercontent.com/3233532/54829971-9f391800-4cc8-11e9-8850-93d0fc0929b5.png
https://github.com/keramblock
keramblockhttps://github.com/keramblock
on Mar 22, 2019https://github.com/getsentry/sentry-python/issues/228#issuecomment-475645837
https://github.com/odannyc
odannychttps://github.com/odannyc
on Mar 28, 2019https://github.com/getsentry/sentry-python/issues/228#issuecomment-477712043
https://github.com/untitaker
untitakerhttps://github.com/untitaker
on Mar 29, 2019https://github.com/getsentry/sentry-python/issues/228#issuecomment-478149411
@odannychttps://github.com/odannyc
https://github.com/odannyc
odannychttps://github.com/odannyc
on Mar 29, 2019https://github.com/getsentry/sentry-python/issues/228#issuecomment-478150730
@untitakerhttps://github.com/untitaker
https://github.com/untitaker
untitakerhttps://github.com/untitaker
on Apr 5, 2019https://github.com/getsentry/sentry-python/issues/228#issuecomment-480336335
@techdragonhttps://github.com/techdragon
untitakerhttps://github.com/untitaker
Help Wantedhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Help%20Wanted%22
New Integrationhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22New%20Integration%22
on Apr 5, 2019https://github.com/getsentry/sentry-python/issues/228#event-2256305485
https://github.com/techdragon
techdragonhttps://github.com/techdragon
on Apr 8, 2019https://github.com/getsentry/sentry-python/issues/228#issuecomment-480709424
@untitakerhttps://github.com/untitaker
@keramblockhttps://github.com/keramblock
@psviderskihttps://github.com/psviderski
@psviderskihttps://github.com/psviderski
the documentation provided by structloghttp://www.structlog.org/en/stable/standard-library.html#rendering-using-structlog-based-formatters-within-logging
@untitakerhttps://github.com/untitaker
@untitakerhttps://github.com/untitaker
@untitakerhttps://github.com/untitaker
sl0thentr0pyhttps://github.com/sl0thentr0py
Status: Stalehttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Status%3A%20Stale%22
on Jan 21, 2022https://github.com/getsentry/sentry-python/issues/228#event-5932441229
antonpirkerhttps://github.com/antonpirker
Integration: Logginghttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Integration%3A%20Logging%22
on Mar 1, 2022https://github.com/getsentry/sentry-python/issues/228#event-6160258474
antonpirkerhttps://github.com/antonpirker
on Mar 21, 2022https://github.com/getsentry/sentry-python/issues/228#event-6273461002
https://github.com/Matsemann
Matsemannhttps://github.com/Matsemann
on Apr 4, 2022https://github.com/getsentry/sentry-python/issues/228#issuecomment-1087615981
@untitakerhttps://github.com/untitaker
https://github.com/untitaker
untitakerhttps://github.com/untitaker
on Apr 5, 2022https://github.com/getsentry/sentry-python/issues/228#issuecomment-1088574231
Fingerprint Ruleshttps://docs.sentry.io/product/data-management-settings/event-grouping/fingerprint-rules/
https://github.com/Matsemann
Matsemannhttps://github.com/Matsemann
on Apr 5, 2022https://github.com/getsentry/sentry-python/issues/228#issuecomment-1088604301
@untitakerhttps://github.com/untitaker
https://github.com/untitaker
untitakerhttps://github.com/untitaker
on Apr 6, 2022https://github.com/getsentry/sentry-python/issues/228#issuecomment-1090159301
https://docs.sentry.io/platforms/python/usage/sdk-fingerprinting/https://docs.sentry.io/platforms/python/usage/sdk-fingerprinting/
https://github.com/Matsemann
Matsemannhttps://github.com/Matsemann
on Apr 6, 2022https://github.com/getsentry/sentry-python/issues/228#issuecomment-1090328374
https://github.com/lewismc
lewismchttps://github.com/lewismc
on Sep 22, 2022https://github.com/getsentry/sentry-python/issues/228#issuecomment-1254406021
hubertdeng123https://github.com/hubertdeng123
Status: Backloghttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Status%3A%20Backlog%22
on Jul 25, 2023https://github.com/getsentry/sentry-python/issues/228#event-9914164960
sentrivanahttps://github.com/sentrivana
Triagedhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Triaged%22
on Aug 14, 2023https://github.com/getsentry/sentry-python/issues/228#event-10085831211
antonpirkerhttps://github.com/antonpirker
on Jun 20, 2024https://github.com/getsentry/sentry-python/issues/228#event-13225732686
https://github.com/antonpirker
antonpirkerhttps://github.com/antonpirker
on Dec 10, 2024https://github.com/getsentry/sentry-python/issues/228#issuecomment-2531458418
@lewismchttps://github.com/lewismc
antonpirkerhttps://github.com/antonpirker
completedhttps://github.com/getsentry/sentry-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Dec 10, 2024https://github.com/getsentry/sentry-python/issues/228#event-15599889092
Bughttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Bug%22
on Aug 13, 2025https://github.com/getsentry/sentry-python/issues/228#event-19125106249
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-python/issues/228
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-python/issues/228
Bughttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Bug%22
Help Wantedhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Help%20Wanted%22
Integration: Logginghttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Integration%3A%20Logging%22
New Integrationhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22New%20Integration%22
Triagedhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Triaged%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.