diff --git a/sdks/python/src/opik/rest_api/traces/client.py b/sdks/python/src/opik/rest_api/traces/client.py index ac58ae8ac7..a04491affe 100644 --- a/sdks/python/src/opik/rest_api/traces/client.py +++ b/sdks/python/src/opik/rest_api/traces/client.py @@ -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 @@ -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): @@ -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", @@ -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