diff --git a/ddtrace/llmobs/_llmobs.py b/ddtrace/llmobs/_llmobs.py index 9fec36a9d10..66339cbb751 100644 --- a/ddtrace/llmobs/_llmobs.py +++ b/ddtrace/llmobs/_llmobs.py @@ -28,7 +28,6 @@ from ddtrace.internal.service import ServiceStatusError from ddtrace.internal.telemetry import telemetry_writer from ddtrace.internal.telemetry.constants import TELEMETRY_APM_PRODUCT -from ddtrace.internal.utils.deprecations import DDTraceDeprecationWarning from ddtrace.internal.utils.formats import asbool from ddtrace.internal.utils.formats import parse_tags_str from ddtrace.llmobs import _constants as constants @@ -68,7 +67,6 @@ from ddtrace.llmobs.utils import ExportedLLMObsSpan from ddtrace.llmobs.utils import Messages from ddtrace.propagation.http import HTTPPropagator -from ddtrace.vendor.debtcollector import deprecate log = get_logger(__name__) @@ -1053,13 +1051,6 @@ def submit_evaluation( timestamp_ms: Optional[int] = None, metadata: Optional[Dict[str, object]] = None, ) -> None: - deprecate( - "Using `LLMObs.submit_evaluation` is deprecated", - message="Please use `LLMObs.submit_evaluation_for` instead.", - removal_version="3.0.0", - category=DDTraceDeprecationWarning, - ) - """ Submits a custom evaluation metric for a given span ID and trace ID. diff --git a/releasenotes/notes/submit-evaluation-for-01096d803d969e3e.yaml b/releasenotes/notes/submit-evaluation-for-01096d803d969e3e.yaml deleted file mode 100644 index c2e4b25f255..00000000000 --- a/releasenotes/notes/submit-evaluation-for-01096d803d969e3e.yaml +++ /dev/null @@ -1,17 +0,0 @@ ---- -features: - - | - LLM Observability: This introduces the `LLMObs.submit_evaluation_for` method, which provides the ability to join a custom evaluation - to a span using a tag key-value pair on the span. The tag key-value pair is expected to uniquely identify a single span. - Tag-based joining is an alternative to the existing method of joining evaluations to spans using trace and span IDs. - Example usage: - - Evaluation joined by tag: `LLMObs.submit_evaluation_for(span_with_tag_value={"tag_key": "message_id", "tag_value": "dummy_message_id"}, label="rating", ...)`. - - Evaluation joined by trace/span ID: `LLMObs.submit_evaluation_for(span={"trace_id": "...", "span_id": "..."}, label="rating", ...)`. -deprecations: - - | - LLM Observability: `LLMObs.submit_evaluation` is deprecated and will be removed in ddtrace 3.0.0. - As an alternative to `LLMObs.submit_evaluation`, you can use `LLMObs.submit_evaluation_for` instead. - To migrate, replace `LLMObs.submit_evaluation(span_context={"span_id": ..., "trace_id": ...}, ...)` with: - `LLMObs.submit_evaluation_for(span={"span_id": ..., "trace_id": ...}, ...) - You may also join an evaluation to a span using a tag key-value pair like so: - `LLMObs.submit_evaluation_for(span_with_tag_value={"tag_key": ..., "tag_val": ...}, ...)`.