René's URL Explorer Experiment


Title: Cache and expose extractors by nuno-andre · Pull Request #155 · elastic/ecs-logging-python · GitHub

Open Graph Title: Cache and expose extractors by nuno-andre · Pull Request #155 · elastic/ecs-logging-python

X Title: Cache and expose extractors by nuno-andre · Pull Request #155 · elastic/ecs-logging-python

Description: This PR caches and exposes the extractors dict for two purposes: Loads the dict only during initialization, instead of on every logger invocation. Provides a clearer and more scalable way to subcl...

Open Graph Description: This PR caches and exposes the extractors dict for two purposes: Loads the dict only during initialization, instead of on every logger invocation. Provides a clearer and more scalable way to subcl...

X Description: This PR caches and exposes the extractors dict for two purposes: Loads the dict only during initialization, instead of on every logger invocation. Provides a clearer and more scalable way to subcl...

Opengraph URL: https://github.com/elastic/ecs-logging-python/pull/155

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:4d1fc90f-88a1-846f-7d72-19e27941ce82
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBF86:197BC:135BAC:1A9354:6980E501
html-safe-noncecaac9e914b22294f0e3bd1b2cf1dcd581fbd1591bd973c5c37bd333159cf7746
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjg2OjE5N0JDOjEzNUJBQzoxQTkzNTQ6Njk4MEU1MDEiLCJ2aXNpdG9yX2lkIjoiMTUyNDc1NzY0NTk0MzY5NzkzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace10667eb21093dda7123773aae98242382212cac19fffdfd731429bd9c58099f
hovercard-subject-tagpull_request:2337739696
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/elastic/ecs-logging-python/155/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/feaaa0d2a3cb629c2994ce67373d5eedff25a809d0cfdeb821092694505b8a75/elastic/ecs-logging-python/pull/155
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/feaaa0d2a3cb629c2994ce67373d5eedff25a809d0cfdeb821092694505b8a75/elastic/ecs-logging-python/pull/155
og:image:altThis PR caches and exposes the extractors dict for two purposes: Loads the dict only during initialization, instead of on every logger invocation. Provides a clearer and more scalable way to subcl...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenuno-andre
hostnamegithub.com
expected-hostnamegithub.com
Noneaaf8d4a8e86300179375c44c83488bc74585c21f81b72377699d5e6c4b00d1b1
turbo-cache-controlno-preview
go-importgithub.com/elastic/ecs-logging-python git https://github.com/elastic/ecs-logging-python.git
octolytics-dimension-user_id6764390
octolytics-dimension-user_loginelastic
octolytics-dimension-repository_id247814411
octolytics-dimension-repository_nwoelastic/ecs-logging-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id247814411
octolytics-dimension-repository_network_root_nwoelastic/ecs-logging-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
release0b50c4d33bc796ea7d05dba2f7cf29956c2e8265
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Felastic%2Fecs-logging-python%2Fpull%2F155
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Felastic%2Fecs-logging-python%2Fpull%2F155
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=elastic%2Fecs-logging-python
Reloadhttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155
Reloadhttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155
Reloadhttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155
elastic https://patch-diff.githubusercontent.com/elastic
ecs-logging-pythonhttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Felastic%2Fecs-logging-python
Fork 32 https://patch-diff.githubusercontent.com/login?return_to=%2Felastic%2Fecs-logging-python
Star 72 https://patch-diff.githubusercontent.com/login?return_to=%2Felastic%2Fecs-logging-python
Code https://patch-diff.githubusercontent.com/elastic/ecs-logging-python
Issues 11 https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/issues
Pull requests 4 https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pulls
Actions https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/actions
Security 0 https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/security
Insights https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pulse
Code https://patch-diff.githubusercontent.com/elastic/ecs-logging-python
Issues https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/issues
Pull requests https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pulls
Actions https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/actions
Security https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/security
Insights https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Felastic%2Fecs-logging-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Felastic%2Fecs-logging-python%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155#issue-comment-box
nuno-andrehttps://patch-diff.githubusercontent.com/nuno-andre
elastic:mainhttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/tree/main
nuno-andre:expose-extractorshttps://patch-diff.githubusercontent.com/nuno-andre/ecs-logging-python/tree/expose-extractors
Cache and expose extractors https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155#top
nuno-andrehttps://patch-diff.githubusercontent.com/nuno-andre
elastic:mainhttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/tree/main
nuno-andre:expose-extractorshttps://patch-diff.githubusercontent.com/nuno-andre/ecs-logging-python/tree/expose-extractors
Conversation 5 https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155
Commits 2 https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155/commits
Checks 5 https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155/checks
Files changed https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155/files
Please reload this pagehttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/nuno-andre
nuno-andrehttps://patch-diff.githubusercontent.com/nuno-andre
Feb 15, 2025https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155#issue-2855488788
Please reload this pagehttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155
Literal was added in Python 3.8https://docs.python.org/3/whatsnew/3.8.html#typing
Please reload this pagehttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155
https://patch-diff.githubusercontent.com/apps/github-actions
github-actionshttps://patch-diff.githubusercontent.com/apps/github-actions
agent-python https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/issues?q=state%3Aopen%20label%3Aagent-python
community https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/issues?q=state%3Aopen%20label%3Acommunity
triage https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/issues?q=state%3Aopen%20label%3Atriage
Feb 15, 2025https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155#event-16321692669
https://patch-diff.githubusercontent.com/xrmx
xrmxhttps://patch-diff.githubusercontent.com/xrmx
Feb 28, 2025 https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155#pullrequestreview-2651107849
View reviewed changes https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155/files
.pre-commit-config.yamlhttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155/files#diff-63a9c44a44acf85fea213a857769990937107cf072831e1a26808cfde9d096b9
Please reload this pagehttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155
ecs_logging/_stdlib.pyhttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155/files#diff-d6f3e23b27ea34fd10c9de9818626e4ad514a80270c749f07168b40e1df20041
Please reload this pagehttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155
https://patch-diff.githubusercontent.com/nuno-andre
nuno-andrehttps://patch-diff.githubusercontent.com/nuno-andre
force-pushedhttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/compare/52dcd447d4b0935960c206a61d2e65d700bbeeb0..4f713de0df87f0ed85f35f7cad1da599fe47e222
52dcd44https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/commit/52dcd447d4b0935960c206a61d2e65d700bbeeb0
4f713dehttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/commit/4f713de0df87f0ed85f35f7cad1da599fe47e222
Compare https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/compare/52dcd447d4b0935960c206a61d2e65d700bbeeb0..4f713de0df87f0ed85f35f7cad1da599fe47e222
December 24, 2025 17:11https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155#event-21744349941
https://patch-diff.githubusercontent.com/nuno-andre
refactor: remove dead catchhttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155/commits/e388d43e45a4e88d9c0bf8ac8b3ba0f37ebe1bc0
e388d43https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155/commits/e388d43e45a4e88d9c0bf8ac8b3ba0f37ebe1bc0
https://patch-diff.githubusercontent.com/nuno-andre
nuno-andrehttps://patch-diff.githubusercontent.com/nuno-andre
force-pushedhttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/compare/4f713de0df87f0ed85f35f7cad1da599fe47e222..1d3b8d3d8371c482c0f3f89d675e82e946497e1d
4f713dehttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/commit/4f713de0df87f0ed85f35f7cad1da599fe47e222
1d3b8d3https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/commit/1d3b8d3d8371c482c0f3f89d675e82e946497e1d
Compare https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/compare/4f713de0df87f0ed85f35f7cad1da599fe47e222..1d3b8d3d8371c482c0f3f89d675e82e946497e1d
December 24, 2025 17:17https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155#event-21744393310
https://patch-diff.githubusercontent.com/nuno-andre
nuno-andrehttps://patch-diff.githubusercontent.com/nuno-andre
Dec 24, 2025https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155#issuecomment-3690273806
Please reload this pagehttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155
https://patch-diff.githubusercontent.com/nuno-andre
nuno-andrehttps://patch-diff.githubusercontent.com/nuno-andre
force-pushedhttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/compare/1d3b8d3d8371c482c0f3f89d675e82e946497e1d..0c469518b643897c7d33e804e35c06aae6174887
1d3b8d3https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/commit/1d3b8d3d8371c482c0f3f89d675e82e946497e1d
0c46951https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/commit/0c469518b643897c7d33e804e35c06aae6174887
Compare https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/compare/1d3b8d3d8371c482c0f3f89d675e82e946497e1d..0c469518b643897c7d33e804e35c06aae6174887
December 24, 2025 18:11https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155#event-21744734552
https://patch-diff.githubusercontent.com/nuno-andre
feat: expose extractorshttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155/commits/adda890d00b4b0ef77d5c6993bf02584b5c78642
adda890https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155/commits/adda890d00b4b0ef77d5c6993bf02584b5c78642
https://patch-diff.githubusercontent.com/nuno-andre
nuno-andrehttps://patch-diff.githubusercontent.com/nuno-andre
force-pushedhttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/compare/0c469518b643897c7d33e804e35c06aae6174887..adda890d00b4b0ef77d5c6993bf02584b5c78642
0c46951https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/commit/0c469518b643897c7d33e804e35c06aae6174887
adda890https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/commit/adda890d00b4b0ef77d5c6993bf02584b5c78642
Compare https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/compare/0c469518b643897c7d33e804e35c06aae6174887..adda890d00b4b0ef77d5c6993bf02584b5c78642
December 24, 2025 18:34https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155#event-21744887735
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Felastic%2Fecs-logging-python%2Fpull%2F155
https://patch-diff.githubusercontent.com/xrmx
xrmx https://patch-diff.githubusercontent.com/xrmx
https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155/files/f6a7527184cfd161f937a7335b7cf2934520470c
agent-python https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/issues?q=state%3Aopen%20label%3Aagent-python
community https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/issues?q=state%3Aopen%20label%3Acommunity
triage https://patch-diff.githubusercontent.com/elastic/ecs-logging-python/issues?q=state%3Aopen%20label%3Atriage
Please reload this pagehttps://patch-diff.githubusercontent.com/elastic/ecs-logging-python/pull/155
https://patch-diff.githubusercontent.com/nuno-andre
https://patch-diff.githubusercontent.com/xrmx
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.