forked from phoenix/litellm-mirror
use common helpers for writing to otel
This commit is contained in:
parent
f71ba63cab
commit
19fb5cc11c
5 changed files with 23 additions and 34 deletions
|
@ -56,6 +56,7 @@ class ServiceLogging(CustomLogger):
|
|||
parent_otel_span: Optional[Span] = None,
|
||||
start_time: Optional[Union[datetime, float]] = None,
|
||||
end_time: Optional[Union[datetime, float]] = None,
|
||||
event_metadata: Optional[dict] = None,
|
||||
):
|
||||
"""
|
||||
- For counting if the redis, postgres call is successful
|
||||
|
@ -84,6 +85,7 @@ class ServiceLogging(CustomLogger):
|
|||
parent_otel_span=parent_otel_span,
|
||||
start_time=start_time,
|
||||
end_time=end_time,
|
||||
event_metadata=event_metadata,
|
||||
)
|
||||
|
||||
async def async_service_failure_hook(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue