Skip to content

Commit acbb9d4

Browse files
declan-scaleclaude
andcommitted
fix(tracing): satisfy ruff and pyright on obs_ids imports
CI lint has been red on `next` since c67e177 added this file: - ruff I001: typing import block not sorted per the repo's isort config - pyright reportPrivateImportUsage: `tracer` is not re-exported from `ddtrace`, so it must be imported from `ddtrace.trace` The `except ImportError` guard still covers ddtrace being absent, and `ddtrace.trace.tracer` exists in the pinned ddtrace 4.10.1. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent da3b575 commit acbb9d4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/agentex/lib/core/tracing/obs_ids.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from __future__ import annotations
2323

2424
import os
25-
from typing import Dict, Optional, Tuple
25+
from typing import Dict, Tuple, Optional
2626

2727
__all__ = ("get_obs_mode", "obs_correlation")
2828

@@ -55,7 +55,7 @@ def _lgtm_ids() -> Optional[Tuple[str, str]]:
5555

5656
def _ddtrace_ids() -> Optional[Tuple[str, str]]:
5757
try:
58-
from ddtrace import tracer
58+
from ddtrace.trace import tracer
5959
except ImportError:
6060
return None
6161
ctx = tracer.current_trace_context()

0 commit comments

Comments
 (0)