Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added reusable wrapper and implemented reusable wrapper for logfire (and other ops providers) #244

Merged
merged 21 commits into from
May 21, 2024

Conversation

brenkao
Copy link
Collaborator

@brenkao brenkao commented May 14, 2024

  • Refactored logfire, weave, and langfuse to share ops_utils.
  • Updated langfuse to use observe to get pretty nesting
  • Enables functionality described in Add a callback to easily track data #238 with documentation.
  • Updated logfire anthropic to use instrument_anthropic

mirascope/base/utils.py Outdated Show resolved Hide resolved
mirascope/base/calls.py Outdated Show resolved Hide resolved
mirascope/base/ops_utils.py Outdated Show resolved Hide resolved
@willbakst willbakst self-requested a review May 15, 2024 20:54
Copy link

codecov bot commented May 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (34b0c2a) to head (f9aa1ad).
Report is 5 commits behind head on dev.

Current head f9aa1ad differs from pull request most recent head 062dab7

Please upload reports for the commit 062dab7 to get more accurate results.

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #244   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          126       129    +3     
  Lines         6384      6360   -24     
=========================================
- Hits          6384      6360   -24     
Flag Coverage Δ
tests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

mirascope/anthropic/calls.py Show resolved Hide resolved
mirascope/base/extractors.py Show resolved Hide resolved
mirascope/base/ops_utils.py Outdated Show resolved Hide resolved
mirascope/base/ops_utils.py Outdated Show resolved Hide resolved
mirascope/base/ops_utils.py Outdated Show resolved Hide resolved
mirascope/base/ops_utils.py Outdated Show resolved Hide resolved
mirascope/base/ops_utils.py Outdated Show resolved Hide resolved
mirascope/anthropic/calls.py Outdated Show resolved Hide resolved
mirascope/openai/calls.py Show resolved Hide resolved
mirascope/wandb/weave.py Outdated Show resolved Hide resolved
@willbakst willbakst changed the title draft: added reusable wrapper and implemented reusable wrapper for logfire Added reusable wrapper and implemented reusable wrapper for logfire May 17, 2024
@brenkao brenkao self-assigned this May 18, 2024
mirascope/cohere/embedders.py Outdated Show resolved Hide resolved
mirascope/cohere/embedders.py Outdated Show resolved Hide resolved
mirascope/base/ops_utils.py Outdated Show resolved Hide resolved
@willbakst willbakst changed the title Added reusable wrapper and implemented reusable wrapper for logfire Added reusable wrapper and implemented reusable wrapper for logfire (and other ops providers) May 18, 2024
@willbakst willbakst merged commit b742dbb into dev May 21, 2024
6 checks passed
@willbakst willbakst deleted the chore/refactor-wrappers branch May 21, 2024 18:12
@willbakst willbakst linked an issue May 21, 2024 that may be closed by this pull request
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.

Add a callback to easily track data
2 participants