GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: allow OTLP allocation and lock thresholds by arnabnandy7 · Pull Request #351 · grafana/pyroscope-java

Conversation

@arnabnandy7

@arnabnandy7 arnabnandy7 commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Description

Allows OTLP export to use allocation and lock profiling thresholds when the threshold configures the selected primary event.

Valid configurations now include:

PYROSCOPE_FORMAT=otlp
PYROSCOPE_PROFILER_EVENT=alloc
PYROSCOPE_PROFILER_ALLOC=512k

and:

PYROSCOPE_FORMAT=otlp
PYROSCOPE_PROFILER_EVENT=lock
PYROSCOPE_PROFILER_LOCK=10ms

Previously, any use of PYROSCOPE_PROFILER_ALLOC or PYROSCOPE_PROFILER_LOCK with OTLP was rejected, even though async-profiler treats these values as thresholds for the selected event.

The validation still rejects distinct events running simultaneously. Multiple events remain supported in sampling mode, where they run sequentially.

Changes

  • Allow allocation thresholds when alloc is the primary event.
  • Allow lock thresholds when lock is the primary event.
  • Preserve validation against simultaneous OTLP profiling events.
  • Add coverage for allocation, lock, invalid simultaneous events, and sequential sampling.
  • Document the supported OTLP configurations.

Testing

./gradlew :agent:test --tests io.pyroscope.javaagent.config.OtlpConfigTest

Fixes #347

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@arnabnandy7
fix: allow OTLP allocation and lock thresholds
516a07f
Signed-off-by: Arnab Nandy <[email protected]>
@arnabnandy7
arnabnandy7 requested review from a team as code owners August 16, 2026 12:30
@arnabnandy7

arnabnandy7 commented Aug 16, 2026

Copy link
Copy Markdown
Contributor Author

@korniltsev-grafanista to review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

korniltsev-grafanista
korniltsev-grafanista reviewed Aug 18, 2026
View reviewed changes
Comment thread README.md
The agent sends protobuf requests to `<server-address>/v1development/profiles`.

OTLP export requires the default `ASYNC` profiler and is not supported by the JFR profiler used on Windows.
Only one profiling event can run at a time. Allocation and lock thresholds can be configured when their event is

@korniltsev-grafanista korniltsev-grafanista Aug 18, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not update readme. The information here is quickly outdated. The documentation lives in grafana/pyroscope repo.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

arnabnandy7 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
korniltsev-grafanista
korniltsev-grafanista approved these changes Aug 18, 2026
View reviewed changes
@korniltsev-grafanista
korniltsev-grafanista merged commit ca26a77 into grafana:main Aug 18, 2026
45 of 91 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@pyroscope-development-app pyroscope-development-app Bot mentioned this pull request Aug 18, 2026
chore(main): release 2.9.2 #354
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@korniltsev-grafanista korniltsev-grafanista korniltsev-grafanista approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Allow single-event allocation and lock profiling with OTLP

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@arnabnandy7 @korniltsev-grafanista
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.