Skip to content

Allow new context argument of metric instrument methods to be passed positionally - #616

Merged
alexmojaki merged 1 commit into
mainfrom
alex/metrics-context-positional
Nov 21, 2024
Merged

alexmojaki merged 1 commit into
mainfrom
alex/metrics-context-positional

Conversation

@alexmojaki

Copy link
Copy Markdown
Contributor

Fixes error seen in https://github.com/pydantic/platform/actions/runs/11951891690/job/33317017710?pr=5933

These classes are private so we don't actually need good type hints here.

@alexmojaki
alexmojaki requested a review from Kludex November 21, 2024 11:37
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: aaf5274
Status: ✅  Deploy successful!
Preview URL: https://5764c37d.logfire-docs.pages.dev
Branch Preview URL: https://alex-metrics-context-positio.logfire-docs.pages.dev

View logs

@alexmojaki
alexmojaki enabled auto-merge (squash) November 21, 2024 11:40
@codecov

codecov Bot commented Nov 21, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (be4bad5) to head (aaf5274).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #616   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          133       133           
  Lines        10561     10567    +6     
  Branches      1450      1450           
=========================================
+ Hits         10561     10567    +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@alexmojaki
alexmojaki merged commit b83c786 into main Nov 21, 2024
@alexmojaki
alexmojaki deleted the alex/metrics-context-positional branch November 21, 2024 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant