Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[anthropic] Add beta.messages.parse span

Open
#552 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
observability

Research direction

Review the existing Anthropic instrumentation in src/opentelemetry/instrumentation/genai/anthropic/init.py and patch.py, focusing on Messages.parse and AsyncMessages.parse. Check the existing tests and tracing behavior for comparable methods first. Done means both parse entry points produce the gen_ai.inference.client chat span as described, with tests covering the behavior.

Written by the indexing model from the issue text.

Description

openinference-migration

[!NOTE]
This issue was generated with AI assistance and requires investigation and confirmation prior to being worked on.

Part of #542.

Add tracing for anthropic.resources.beta.messages.Messages.parse and AsyncMessages.parse.

  • Maps to gen_ai.inference.client (chat)
  • Affected files: src/opentelemetry/instrumentation/genai/anthropic/__init__.py, patch.py, tests
Dominant language
Python
Stars
40
Forks
72
Avg merge
1d 16h
Merged PRs (30d)
124

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from open-telemetry/opentelemetry-python-genai

All issues in open-telemetry/opentelemetry-python-genai

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.