Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ class SGPSyncTracingProcessor(SyncTracingProcessor):
def __init__(self, config: SGPTracingProcessorConfig):
disabled = config.sgp_api_key == "" or config.sgp_account_id == ""
tracing.init(
SGPClient(api_key=config.sgp_api_key, account_id=config.sgp_account_id),
SGPClient(
api_key=config.sgp_api_key,
account_id=config.sgp_account_id,
base_url=config.base_url,
),
disabled=disabled,
)
self._spans: dict[str, SGPSpan] = {}
Expand Down
1 change: 1 addition & 0 deletions src/agentex/lib/types/tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class SGPTracingProcessorConfig(BaseModel):
type: Literal["sgp"] = "sgp"
sgp_api_key: str
sgp_account_id: str
base_url: str | None = None


TracingProcessorConfig = Annotated[
Expand Down
Loading