Skip to content

Commit

Permalink
Add log message to fern code...
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkuzmik committed Nov 26, 2024
1 parent 46ee0db commit de21df5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sdks/python/src/opik/rest_api/traces/client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# This file was auto-generated by Fern from our API Definition.

import typing
import logging
from ..core.client_wrapper import SyncClientWrapper
from ..types.feedback_score_source import FeedbackScoreSource
import datetime as dt
Expand All @@ -21,6 +22,7 @@
# this is used as the default value for optional parameters
OMIT = typing.cast(typing.Any, ...)

LOGGER = logging.getLogger()

class TracesClient:
def __init__(self, *, client_wrapper: SyncClientWrapper):
Expand Down Expand Up @@ -239,6 +241,7 @@ def create_trace(
),
)
"""
LOGGER.debug("Start create trace request %s", id)
_response = self._client_wrapper.httpx_client.request(
"v1/private/traces",
method="POST",
Expand All @@ -256,6 +259,7 @@ def create_trace(
request_options=request_options,
omit=OMIT,
)
LOGGER.debug("End create trace request %s", id)
try:
if 200 <= _response.status_code < 300:
return
Expand Down

0 comments on commit de21df5

Please sign in to comment.