newrelic / newrelic/newrelic-java-agent

Log Priority Sampling filter that will capture only ERROR and WARN logs `max_samples_stored` if limit exceeded

Open
#1,706 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3 feature request medium
Dominant language
Java
Stars
240
Forks
170
Avg merge
3d 2h
Merged PRs (30d)
21

Description

This customer was encountering a situation where their log ingest was surpassing the maximum threshold for max_samples_stored. When this happened, they lost visibility into critical errors. They would like to see a log level filter added to our current Priority Sampling logic, which would allow for capturing ERROR and WARN logs in the event that the max_samples_stored threshold is exceeded.

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 locating the current Priority Sampling logic and its max_samples_stored threshold handling. Determine where log levels are available, then verify that ERROR and WARN logs remain capturable when the threshold is exceeded without changing normal sampling behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.