René's URL Explorer Experiment


Title: task(logger): accept serializable objects as metadata by barrettpyke · Pull Request #437 · braintrustdata/braintrust-sdk-python · GitHub

Open Graph Title: task(logger): accept serializable objects as metadata by barrettpyke · Pull Request #437 · braintrustdata/braintrust-sdk-python

X Title: task(logger): accept serializable objects as metadata by barrettpyke · Pull Request #437 · braintrustdata/braintrust-sdk-python

Description: Python Tracing & Evals library for Braintrust. Contribute to braintrustdata/braintrust-sdk-python development by creating an account on GitHub.

Open Graph Description: Description Run metadata through the bt_safe_deep_copy before validating it so Pydantic models and other objects that dump to dictionaries can be logged as metadata. This change covers: Logger.log...

X Description: Description Run metadata through the bt_safe_deep_copy before validating it so Pydantic models and other objects that dump to dictionaries can be logged as metadata. This change covers: Logger.log...

Opengraph URL: https://github.com/braintrustdata/braintrust-sdk-python/pull/437

X: @github

direct link

Domain: github.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:a1388b2e-e939-220f-f70e-d94f469ae21f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9B66:3ED5C4:2897D87:3A6DD02:6A4D238F
html-safe-nonce11a2d8644ad642ef745d55b72492b9489b011bdde514863156b11bdda24ec2b2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjY2OjNFRDVDNDoyODk3RDg3OjNBNkREMDI6NkE0RDIzOEYiLCJ2aXNpdG9yX2lkIjoiMzA2MjExMTI2MzQ3NzUzOTcyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2ae7fca054df22ff5049779511ab71f27bb9196bc1b417b20496a268c170b52d
hovercard-subject-tagpull_request:3690625605
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/braintrustdata/braintrust-sdk-python/437/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/0dc3a6af59aa217c4a70739acdc36312fa54c289ec306cb5464ab5f6342f9db5/braintrustdata/braintrust-sdk-python/pull/437
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0dc3a6af59aa217c4a70739acdc36312fa54c289ec306cb5464ab5f6342f9db5/braintrustdata/braintrust-sdk-python/pull/437
og:image:altDescription Run metadata through the bt_safe_deep_copy before validating it so Pydantic models and other objects that dump to dictionaries can be logged as metadata. This change covers: Logger.log...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebarrettpyke
hostnamegithub.com
expected-hostnamegithub.com
None92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6
turbo-cache-controlno-cache
go-importgithub.com/braintrustdata/braintrust-sdk-python git https://github.com/braintrustdata/braintrust-sdk-python.git
octolytics-dimension-user_id128932779
octolytics-dimension-user_loginbraintrustdata
octolytics-dimension-repository_id1162746274
octolytics-dimension-repository_nwobraintrustdata/braintrust-sdk-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1162746274
octolytics-dimension-repository_network_root_nwobraintrustdata/braintrust-sdk-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
release93f17a978ee60bc4668e1d7b90e6bd2d622261fd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/braintrustdata/braintrust-sdk-python/pull/437#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbraintrustdata%2Fbraintrust-sdk-python%2Fpull%2F437
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbraintrustdata%2Fbraintrust-sdk-python%2Fpull%2F437
Sign up https://github.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=braintrustdata%2Fbraintrust-sdk-python
Reloadhttps://github.com/braintrustdata/braintrust-sdk-python/pull/437
Reloadhttps://github.com/braintrustdata/braintrust-sdk-python/pull/437
Reloadhttps://github.com/braintrustdata/braintrust-sdk-python/pull/437
Please reload this pagehttps://github.com/braintrustdata/braintrust-sdk-python/pull/437
braintrustdata https://github.com/braintrustdata
braintrust-sdk-pythonhttps://github.com/braintrustdata/braintrust-sdk-python
Notifications https://github.com/login?return_to=%2Fbraintrustdata%2Fbraintrust-sdk-python
Fork 11 https://github.com/login?return_to=%2Fbraintrustdata%2Fbraintrust-sdk-python
Star 14 https://github.com/login?return_to=%2Fbraintrustdata%2Fbraintrust-sdk-python
Code https://github.com/braintrustdata/braintrust-sdk-python
Issues 44 https://github.com/braintrustdata/braintrust-sdk-python/issues
Pull requests 12 https://github.com/braintrustdata/braintrust-sdk-python/pulls
Actions https://github.com/braintrustdata/braintrust-sdk-python/actions
Projects https://github.com/braintrustdata/braintrust-sdk-python/projects
Security and quality 0 https://github.com/braintrustdata/braintrust-sdk-python/security
Insights https://github.com/braintrustdata/braintrust-sdk-python/pulse
Code https://github.com/braintrustdata/braintrust-sdk-python
Issues https://github.com/braintrustdata/braintrust-sdk-python/issues
Pull requests https://github.com/braintrustdata/braintrust-sdk-python/pulls
Actions https://github.com/braintrustdata/braintrust-sdk-python/actions
Projects https://github.com/braintrustdata/braintrust-sdk-python/projects
Security and quality https://github.com/braintrustdata/braintrust-sdk-python/security
Insights https://github.com/braintrustdata/braintrust-sdk-python/pulse
Barrett Pyke (barrettpyke)https://github.com/barrettpyke
mainhttps://github.com/braintrustdata/braintrust-sdk-python/tree/main
barrettpyke/expand-metadatahttps://github.com/braintrustdata/braintrust-sdk-python/tree/barrettpyke/expand-metadata
Conversationhttps://github.com/braintrustdata/braintrust-sdk-python/pull/437
Commits5 (5)https://github.com/braintrustdata/braintrust-sdk-python/pull/437/commits
Checkshttps://github.com/braintrustdata/braintrust-sdk-python/pull/437/checks
Files changedhttps://github.com/braintrustdata/braintrust-sdk-python/pull/437/files
task(logger): accept serializable objects as metadatahttps://github.com/braintrustdata/braintrust-sdk-python/pull/437#top
Barrett Pyke (barrettpyke)https://github.com/barrettpyke
mainhttps://github.com/braintrustdata/braintrust-sdk-python/tree/main
barrettpyke/expand-metadatahttps://github.com/braintrustdata/braintrust-sdk-python/tree/barrettpyke/expand-metadata
https://github.com/barrettpyke
Barrett Pyke (barrettpyke)https://github.com/barrettpyke
May 15, 2026https://github.com/braintrustdata/braintrust-sdk-python/pull/437#issue-4455182030
Please reload this pagehttps://github.com/braintrustdata/braintrust-sdk-python/pull/437
Please reload this pagehttps://github.com/braintrustdata/braintrust-sdk-python/pull/437
Barrett Pyke (barrettpyke)https://github.com/barrettpyke
May 15, 2026 10:05https://github.com/braintrustdata/braintrust-sdk-python/pull/437#commits-pushed-84a9c07
https://github.com/barrettpyke
task(logger): accept serializable objects as metadatahttps://github.com/braintrustdata/braintrust-sdk-python/pull/437/commits/84a9c0772aeb71b3b5690cdda9d20dce1a9ad32f
84a9c07https://github.com/braintrustdata/braintrust-sdk-python/pull/437/commits/84a9c0772aeb71b3b5690cdda9d20dce1a9ad32f
https://github.com/barrettpyke
task(logger): update types / param docs for log_feedback and experimentshttps://github.com/braintrustdata/braintrust-sdk-python/pull/437/commits/3f35ff6e83a6267eff1f4d990b2c84136bb1b177
3f35ff6https://github.com/braintrustdata/braintrust-sdk-python/pull/437/commits/3f35ff6e83a6267eff1f4d990b2c84136bb1b177
https://github.com/barrettpyke
task(logger): align param docs to include note about pydantichttps://github.com/braintrustdata/braintrust-sdk-python/pull/437/commits/bd123edd25fe8561556c476c50818c177250786f
bd123edhttps://github.com/braintrustdata/braintrust-sdk-python/pull/437/commits/bd123edd25fe8561556c476c50818c177250786f
https://github.com/barrettpyke
Barrett Pyke (barrettpyke)https://github.com/barrettpyke
May 15, 2026https://github.com/braintrustdata/braintrust-sdk-python/pull/437#event-25583204775
Allow Span.log metadata to serialize Pydantic models #435 https://github.com/braintrustdata/braintrust-sdk-python/issues/435
https://github.com/barrettpyke
Barrett Pyke (barrettpyke)https://github.com/barrettpyke
Luca Forstner (lforst)https://github.com/lforst
May 15, 2026 16:15https://github.com/braintrustdata/braintrust-sdk-python/pull/437#event-25583659158
https://github.com/lforst
Luca Forstner (lforst)https://github.com/lforst
Abhijeet Prasad (AbhiPrasad)https://github.com/AbhiPrasad
May 18, 2026 08:27https://github.com/braintrustdata/braintrust-sdk-python/pull/437#event-25647542774
https://github.com/AbhiPrasad
Abhijeet Prasad (AbhiPrasad)https://github.com/AbhiPrasad
May 19, 2026 https://github.com/braintrustdata/braintrust-sdk-python/pull/437#pullrequestreview-4321696437
View reviewed changes https://github.com/braintrustdata/braintrust-sdk-python/pull/437/files/bd123edd25fe8561556c476c50818c177250786f
py/src/braintrust/logger.pyhttps://github.com/braintrustdata/braintrust-sdk-python/pull/437/files/bd123edd25fe8561556c476c50818c177250786f#diff-b61f607ac9592592425983de4111dfae9f60684d51a1a5cf38c717684a070fd1
Please reload this pagehttps://github.com/braintrustdata/braintrust-sdk-python/pull/437
py/src/braintrust/logger.pyhttps://github.com/braintrustdata/braintrust-sdk-python/pull/437/files/bd123edd25fe8561556c476c50818c177250786f#diff-b61f607ac9592592425983de4111dfae9f60684d51a1a5cf38c717684a070fd1
Please reload this pagehttps://github.com/braintrustdata/braintrust-sdk-python/pull/437
py/src/braintrust/logger.pyhttps://github.com/braintrustdata/braintrust-sdk-python/pull/437/files/bd123edd25fe8561556c476c50818c177250786f#diff-b61f607ac9592592425983de4111dfae9f60684d51a1a5cf38c717684a070fd1
Please reload this pagehttps://github.com/braintrustdata/braintrust-sdk-python/pull/437
https://github.com/barrettpyke
update Metadata type to include Pydantic Protocols, add type tests, c…https://github.com/braintrustdata/braintrust-sdk-python/pull/437/commits/d066c98c821e2c920b50b3bfe04628a366a13a0f
d066c98https://github.com/braintrustdata/braintrust-sdk-python/pull/437/commits/d066c98c821e2c920b50b3bfe04628a366a13a0f
https://github.com/barrettpyke
Barrett Pyke (barrettpyke)https://github.com/barrettpyke
Abhijeet Prasad (AbhiPrasad)https://github.com/AbhiPrasad
May 21, 2026 14:42https://github.com/braintrustdata/braintrust-sdk-python/pull/437#event-25809717230
https://github.com/AbhiPrasad
Abhijeet Prasad (AbhiPrasad)https://github.com/AbhiPrasad
May 21, 2026 https://github.com/braintrustdata/braintrust-sdk-python/pull/437#pullrequestreview-4338156459
View reviewed changes https://github.com/braintrustdata/braintrust-sdk-python/pull/437/files/d066c98c821e2c920b50b3bfe04628a366a13a0f
py/src/braintrust/types/__init__.pyhttps://github.com/braintrustdata/braintrust-sdk-python/pull/437/files/d066c98c821e2c920b50b3bfe04628a366a13a0f#diff-7572d95007620f5385393df0344dc6a342387448770a3872a4f00922978fc3f3
Please reload this pagehttps://github.com/braintrustdata/braintrust-sdk-python/pull/437
https://github.com/barrettpyke
remove underscore from PydanticV2Metadata and PydanticV1Metadatahttps://github.com/braintrustdata/braintrust-sdk-python/pull/437/commits/cf9118ec73c8135f004195cb02b045c8e561a2b5
cf9118ehttps://github.com/braintrustdata/braintrust-sdk-python/pull/437/commits/cf9118ec73c8135f004195cb02b045c8e561a2b5
https://github.com/AbhiPrasad
Abhijeet Prasad (AbhiPrasad)https://github.com/AbhiPrasad
May 21, 2026 https://github.com/braintrustdata/braintrust-sdk-python/pull/437#pullrequestreview-4339601184
View reviewed changes https://github.com/braintrustdata/braintrust-sdk-python/pull/437/files/cf9118ec73c8135f004195cb02b045c8e561a2b5
https://github.com/barrettpyke
Barrett Pyke (barrettpyke)https://github.com/barrettpyke
4079ffahttps://github.com/braintrustdata/braintrust-sdk-python/commit/4079ffada6b91136382d46787e6be023bc675a21
May 21, 2026https://github.com/braintrustdata/braintrust-sdk-python/pull/437#event-25819026739
Please reload this pagehttps://github.com/braintrustdata/braintrust-sdk-python/pull/437
https://github.com/barrettpyke
Barrett Pyke (barrettpyke)https://github.com/barrettpyke
May 21, 2026 18:27https://github.com/braintrustdata/braintrust-sdk-python/pull/437#event-25819028034
https://github.com/AbhiPrasad
Abhijeet Prasad (AbhiPrasad)https://github.com/AbhiPrasad
May 22, 2026https://github.com/braintrustdata/braintrust-sdk-python/pull/437#issuecomment-4521702199
https://github.com/braintrustdata/braintrust-sdk-python/releases/tag/py-sdk-v0.22.1https://github.com/braintrustdata/braintrust-sdk-python/releases/tag/py-sdk-v0.22.1
Please reload this pagehttps://github.com/braintrustdata/braintrust-sdk-python/pull/437
https://github.co/hiddenchars
https://github.com/braintrustdata/braintrust-sdk-python/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbraintrustdata%2Fbraintrust-sdk-python%2Fpull%2F437
https://github.com/AbhiPrasad
Abhijeet Prasad (AbhiPrasad) https://github.com/AbhiPrasad
https://github.com/braintrustdata/braintrust-sdk-python/pull/437/files/cf9118ec73c8135f004195cb02b045c8e561a2b5
https://github.com/lforst
Luca Forstner (lforst) https://github.com/lforst
Allow Span.log metadata to serialize Pydantic models https://github.com/braintrustdata/braintrust-sdk-python/issues/435
Please reload this pagehttps://github.com/braintrustdata/braintrust-sdk-python/pull/437
https://github.com/barrettpyke
https://github.com/AbhiPrasad
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.