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

Support for tail based sampling?

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

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Quiet
Tech stack
java
Domain
observability

Research direction

No files, tests, or entry points are named. Start by reviewing the existing sampling and telemetry behavior in ApplicationInsights-Java, then clarify how tail-based rules should handle slow dependencies and failed spans or traces before implementation can be considered done.

Written by the indexing model from the issue text.

Description

Is your feature request related to a problem? Please describe.
We want to have more control over sampling in our application.

  1. Don't record dependencies that are less than 100ms(successpath), but record everything that is >100ms. (numbers are arbitrary)
  2. Record 100% failed telemetry(span/trace/etc) as described here https://github.com/microsoft/ApplicationInsights-Java/issues/3511 . Recording only exception doesn't give much context if everything surrounding it is sampled.
    We want to lower our costs but also have useful telemetry, I believe having tail based sampling would greatly help us.

Describe the solution you would like
Add support for tail based sampling to have more control?

Describe alternatives you have considered
Describe any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Dominant language
Java
Stars
327
Forks
222
Avg merge
22h 34m
Merged PRs (30d)
14

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.

More from microsoft/ApplicationInsights-Java

All issues in microsoft/ApplicationInsights-Java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.