open-telemetry / open-telemetry/opentelemetry-java

Annotations support for non-auto instrumented code

Open
#3,035 15 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Request help wanted
Dominant language
Java
Stars
2.5k
Forks
1k
Avg merge
3d 17h
Merged PRs (30d)
58

Description

Just a question - Do we have any example to create span for a method with Annotations.? I see @WithSpan in extension for auto instrumenting..But i dont see any annotations for adding spans in code.

Will we support for non-autoinstrumented solutions? If not, do we have any references to create custom annotations to create spans for methods using annotations.

Contributor guide

Open the contributing guide

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.

Research direction

Start by reading the issue's reference to @WithSpan and the extension for auto-instrumenting code, then search the repository for annotation-based span examples or documentation. Done would be a clear reference showing whether non-auto-instrumented methods can use annotations, or documenting that no such support exists and pointing to the supported approach.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
observability
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.