Skip to content

fix(util-genai): remove deprecated methods from handler.py - #300

Draft
bhumikadangayach wants to merge 2 commits into
open-telemetry:mainfrom
bhumikadangayach:remove-deprecated-genai-methods
Draft

fix(util-genai): remove deprecated methods from handler.py#300
bhumikadangayach wants to merge 2 commits into
open-telemetry:mainfrom
bhumikadangayach:remove-deprecated-genai-methods

Conversation

@bhumikadangayach

Copy link
Copy Markdown
Contributor

Relates to #246

Summary

Removes the 9 deprecated methods from util-genai's handler.py, along with their stale references elsewhere in the codebase.

What changed
Removed all 9 deprecated methods: start_inference, start_llm, start_embedding, start_tool, start_workflow, stop_llm, fail_llm, start_invoke_local_agent, start_invoke_remote_agent
Renamed 8 stale test function names to match the current API (e.g. test_start_workflow_* → test_workflow_*)
Fixed 2 stale docstring references in _inference_invocation.py
Added a changelog fragment
Verification

Checked usage across all instrumentation packages and the shared test-util package before removing — none call these deprecated methods anymore, only docstrings/comments referenced them. 234 tests passing locally, typecheck and precommit clean.

Why draft

Opened as draft since I haven't gotten a response yet on whether a deprecation-window policy should apply before this kind of removal (asked on #246). Keeping this open for visibility and review — happy to adjust scope or timing based on what's preferred.

@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Jul 22, 2026

Copy link
Copy Markdown

Pull request dashboard status

Waiting on the author · refreshed 2026-07-28 02:18 UTC

Move out of draft to request review.

Doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

… stale tests, add changelog

Still waiting on lmolkova's deprecation-window policy answer on open-telemetry#246
before opening a PR.
@bhumikadangayach
bhumikadangayach force-pushed the remove-deprecated-genai-methods branch from 9eda96b to e500732 Compare July 23, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant