Skip to content

Commit bd78a73

Browse files
shah-sidddgustavocidornelas
authored andcommitted
refactor: import fixes
1 parent b7cd032 commit bd78a73

File tree

3 files changed

+3
-23
lines changed

3 files changed

+3
-23
lines changed

src/openlayer/lib/tracing/__init__.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""OpenLayer tracing module."""
1+
"""Openlayer tracing module."""
22

33
from .tracer import (
44
trace,
@@ -13,13 +13,6 @@
1313
create_step,
1414
)
1515

16-
from .context import (
17-
set_user_session_context,
18-
update_trace_user_session,
19-
get_current_user_id,
20-
get_current_session_id,
21-
clear_user_session_context,
22-
)
2316

2417
__all__ = [
2518
# Core tracing functions
@@ -33,12 +26,5 @@
3326
"get_current_trace",
3427
"get_current_step",
3528
"create_step",
36-
37-
# User and session context functions
38-
"set_user_session_context",
39-
"update_trace_user_session",
40-
"get_current_user_id",
41-
"get_current_session_id",
42-
"clear_user_session_context",
4329
]
4430

src/openlayer/lib/tracing/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Streamlined user and session context management for OpenLayer tracing.
2+
Streamlined user and session context management for Openlayer tracing.
33
44
This module provides simple functions to set user_id and session_id in middleware
55
and override them anywhere in your traced code.

src/openlayer/types/inference_pipelines/data_stream_params.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,6 @@ class ConfigLlmData(TypedDict, total=False):
8989
used.
9090
"""
9191

92-
user_id_column_name: Annotated[str, PropertyInfo(alias="userIdColumnName")]
93-
"""Name of the column with the user IDs."""
94-
95-
session_id_column_name: Annotated[str, PropertyInfo(alias="sessionIdColumnName")]
96-
"""Name of the column with the session IDs."""
97-
9892

9993
class ConfigTabularClassificationData(TypedDict, total=False):
10094
class_names: Required[Annotated[SequenceNotStr[str], PropertyInfo(alias="classNames")]]
@@ -235,4 +229,4 @@ class ConfigTextClassificationData(TypedDict, total=False):
235229

236230
Config: TypeAlias = Union[
237231
ConfigLlmData, ConfigTabularClassificationData, ConfigTabularRegressionData, ConfigTextClassificationData
238-
]
232+
]

0 commit comments

Comments
 (0)