-
Notifications
You must be signed in to change notification settings - Fork 11
poc #263
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #263 +/- ##
==========================================
+ Coverage 80.63% 80.71% +0.08%
==========================================
Files 46 46
Lines 3511 3495 -16
==========================================
- Hits 2831 2821 -10
+ Misses 680 674 -6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
436c772 to
6f29896
Compare
| RequestMethod.POST, endpoint=Routes.traces.format(project_id=self.project_id), json=json | ||
| ) | ||
|
|
||
| async def ingest_spans(self, spans_ingest_request: SpansIngestRequest) -> dict[str, str]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to do what I did with ingest_traces to all other functions in this file. Do we really need both _make_request and _make_async_requestwhen under the hood request callsasync_runin the end (viagalileo-core`? We have a lot of logic duplication in this file
| name=name, previous_session_id=previous_session_id, external_id=external_id | ||
| ) | ||
|
|
||
| async def async_start_session( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ignore this change for now
8b14cef to
bf88d78
Compare
TL;DR: rn we have logic for
flush(),update_trace/step_streaming()etc that calls a sync/async function in core_api_client.py that has the same logic duplicated across the sync/async functionsDepending on whether it's a sync or async function, we then call
galileo-core api_client.pyrequest()orarequest().. but both eventually use the sameApiClient.make_requestcallI think this balloons that file up for no reason (unless I'm missing something important) and we should have async_run used instead at the logger.py level.