open-telemetry / open-telemetry/opentelemetry-java-instrumentation

Fill `thread.*` attributes in instrumentation instead of processor

Open
#4,641 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

contribution welcome enhancement
Dominant language
Java
Stars
2.6k
Forks
1.2k
Avg merge
2d 18h
Merged PRs (30d)
228

Description

Currently thread attributes can't be used in sampling because they are added in a processor after the span is created. thread.name in particular can be a nice one for filtering out noisy spans.

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

Trace where thread attributes are currently added by the processor and where spans are created in the Java instrumentation. Confirm that thread.name and the other thread.* attributes are available before sampling, and verify that filtering noisy spans by thread.name works.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
observability-sre
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.