René's URL Explorer Experiment


Title: Formatter deletes request attribute from shared LogRecord · Issue #57 · logtail/logtail-python · GitHub

Open Graph Title: Formatter deletes request attribute from shared LogRecord · Issue #57 · logtail/logtail-python

X Title: Formatter deletes request attribute from shared LogRecord · Issue #57 · logtail/logtail-python

Description: Reproduction import logging from logtail import LogtailFormatter record = logging.LogRecord("example", logging.INFO, __file__, 1, "hello", (), None) request = object() # stand-in for a Django HttpRequest record.request = request LogtailF...

Open Graph Description: Reproduction import logging from logtail import LogtailFormatter record = logging.LogRecord("example", logging.INFO, __file__, 1, "hello", (), None) request = object() # stand-in for a Django HttpR...

X Description: Reproduction import logging from logtail import LogtailFormatter record = logging.LogRecord("example", logging.INFO, __file__, 1, "hello", (), None) request = object() # stand-i...

Opengraph URL: https://github.com/logtail/logtail-python/issues/57

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Formatter deletes request attribute from shared LogRecord","articleBody":"## Reproduction\n\n```python\nimport logging\nfrom logtail import LogtailFormatter\n\nrecord = logging.LogRecord(\"example\", logging.INFO, __file__, 1, \"hello\", (), None)\nrequest = object()  # stand-in for a Django HttpRequest\nrecord.request = request\nLogtailFormatter().format(record)\nassert record.request is request  # AttributeError\n```\n\n`create_frame` deletes non-JSON-compatible request attributes directly from `record.__dict__`. Python logging passes the same record to subsequent handlers, so adding Better Stack can make another handler lose the Django request object. The same mutation occurs through LogtailHandler, and with `request=None`.\n\nThe client should continue omitting unsupported request values from its own output while leaving the original LogRecord intact. Proposed fix: move the existing request-value check into custom-event extraction, skipping that field in the output without deleting it from the record.\n\nLocally reproduced with no hosted ingestion or UI. No real request data involved. AI assistance: OpenAI Codex.\n","author":{"url":"https://github.com/Kayvan-Zahiri","@type":"Person","name":"Kayvan-Zahiri"},"datePublished":"2026-10-23T23:51:38Z","url":"https://github.com/logtail/logtail-python/issues/57"}

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:a6f6c772-9f48-b158-3715-6f58d8272f3f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD482:2F1A1A:F76E8:147C43:6AFBAF39
html-safe-nonce8315b6293a4ff55b2231bbe5bccd1192787cd3c72037b434f70916b089134c3d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDgyOjJGMUExQTpGNzZFODoxNDdDNDM6NkFGQkFGMzkiLCJ2aXNpdG9yX2lkIjoiMjgzODYzOTU1ODExNzc5NzY4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace84717c746d6bccc92cdfb4f74bdbb75f512b5797e090ba709ea5d05a0ebf679
hovercard-subject-tagissue:6007180455
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/logtail/logtail-python/57/issue_layout
twitter:imagehttps://opengraph.githubassets.com/89ab103e762126854ee545c7e03b2f52e212a91196661c2c051c2fa5a3640a14/logtail/logtail-python/issues/57
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/89ab103e762126854ee545c7e03b2f52e212a91196661c2c051c2fa5a3640a14/logtail/logtail-python/issues/57
og:image:altReproduction import logging from logtail import LogtailFormatter record = logging.LogRecord("example", logging.INFO, __file__, 1, "hello", (), None) request = object() # stand-in for a Django HttpR...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameKayvan-Zahiri
hostnamegithub.com
expected-hostnamegithub.com
Nonee25fbd830d3e6ad0e8935c105cf4fdc70c593dffcd27bb45b790ae4fece5ea55
turbo-cache-controlno-preview
go-importgithub.com/logtail/logtail-python git https://github.com/logtail/logtail-python.git
octolytics-dimension-user_id78922349
octolytics-dimension-user_loginlogtail
octolytics-dimension-repository_id351343852
octolytics-dimension-repository_nwologtail/logtail-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id351343852
octolytics-dimension-repository_network_root_nwologtail/logtail-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
release08c8f17f9d27054a108b8b6254e405de0151f660
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/logtail/logtail-python/issues/57#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flogtail%2Flogtail-python%2Fissues%2F57
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%2Flogtail%2Flogtail-python%2Fissues%2F57
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=logtail%2Flogtail-python
Reloadhttps://github.com/logtail/logtail-python/issues/57
Reloadhttps://github.com/logtail/logtail-python/issues/57
Reloadhttps://github.com/logtail/logtail-python/issues/57
logtailhttps://github.com/logtail
logtail-pythonhttps://github.com/logtail/logtail-python
Codehttps://github.com/logtail/logtail-python
Issues1 (1)https://github.com/logtail/logtail-python/issues
Pull requestshttps://github.com/logtail/logtail-python/pulls
Actionshttps://github.com/logtail/logtail-python/actions
Security and qualityhttps://github.com/logtail/logtail-python/security
Insightshttps://github.com/logtail/logtail-python/pulse
https://github.com/logtail/logtail-python
New issuehttps://github.com/login?return_to=https://github.com/logtail/logtail-python/issues/57
New issuehttps://github.com/login?return_to=https://github.com/logtail/logtail-python/issues/57
Formatter deletes request attribute from shared LogRecordhttps://github.com/logtail/logtail-python/issues/57#top
https://github.com/PetrHeinz
https://github.com/Kayvan-Zahiri
Kayvan-Zahirihttps://github.com/Kayvan-Zahiri
on Oct 23, 2026https://github.com/logtail/logtail-python/issues/57#issue-6007180455
gyfishttps://github.com/gyfis
PetrHeinzhttps://github.com/PetrHeinz
on Oct 26, 2026https://github.com/logtail/logtail-python/issues/57#event-34271860599
https://github.com/PetrHeinz
PetrHeinzhttps://github.com/PetrHeinz
on Oct 26, 2026https://github.com/logtail/logtail-python/issues/57#issuecomment-6420698761
@Kayvan-Zahirihttps://github.com/Kayvan-Zahiri
v0.5.3https://github.com/logtail/logtail-python/releases/tag/v0.5.3
PetrHeinzhttps://github.com/PetrHeinz
completedhttps://github.com/logtail/logtail-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 26, 2026https://github.com/logtail/logtail-python/issues/57#event-34278405592
Sign up for freehttps://github.com/signup?return_to=https://github.com/logtail/logtail-python/issues/57
Sign in to commenthttps://github.com/login?return_to=https://github.com/logtail/logtail-python/issues/57
PetrHeinzhttps://github.com/PetrHeinz
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

Viewport: width=device-width


URLs of crawlers that visited me.