-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: purge deprecated dummy tracer
- Loading branch information
1 parent
2ec93d7
commit 5db9001
Showing
6 changed files
with
2 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,3 @@ | ||
import sys | ||
from typing import Any | ||
from phoenix.trace.langchain.instrumentor import LangChainInstrumentor | ||
|
||
import phoenix.trace.langchain.instrumentor as _instrumentor | ||
import phoenix.trace.langchain.tracer as _tracer | ||
|
||
_DUMMY = "OpenInferenceTracer" | ||
|
||
|
||
class _Deprecation: | ||
__all__ = ("LangChainInstrumentor", _DUMMY) | ||
|
||
def __getattr__(self, name: str) -> Any: | ||
if name == "tracer": | ||
return _tracer | ||
if name == "instrumentor": | ||
return _instrumentor | ||
if name == _DUMMY: | ||
return getattr(_tracer, name) | ||
if name == "LangChainInstrumentor": | ||
return _instrumentor.LangChainInstrumentor | ||
raise AttributeError(f"module {__name__} has no attribute {name}") | ||
|
||
|
||
# See e.g. https://stackoverflow.com/a/7668273 | ||
sys.modules[__name__] = _Deprecation() # type: ignore | ||
__all__ = ("LangChainInstrumentor",) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.