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: warn about ignored OTLP application name and labels by arnabnandy7 · Pull Request #348 · grafana/pyroscope-java

Conversation

@arnabnandy7

@arnabnandy7 arnabnandy7 commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Documents the current OTLP export limitation and warns users that the configured application name and labels are not included in OTLP profiles. These profiles may therefore appear under service_name="unknown_service".

It also clarifies why LabelsWrapper.dump() is still called in OTLP mode: besides producing the labels snapshot, it removes closed scoped contexts and prevents them from accumulating.

Changes

  • Document the OTLP application name and label limitation in the README.
  • Log a warning at startup when OTLP export is enabled.
  • Add tests covering the warning.
  • Isolate PyroscopeAgentTest from native async-profiler initialization to make it portable across operating systems.
  • Explain why label state is drained even though OTLP export currently ignores the resulting snapshot.

Testing

./gradlew :agent:test --tests io.pyroscope.javaagent.PyroscopeAgentTest

3 tests completed, 0 failed
BUILD SUCCESSFUL

Closes #344.

Sorry, something went wrong.

Uh oh!

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

All reactions
@arnabnandy7
arnabnandy7 requested review from a team as code owners August 5, 2026 08:15
@arnabnandy7
arnabnandy7 force-pushed the fix/otlp-label-warning branch from 08e5495 to 3c340d7 Compare August 21, 2026 15:27
cursor[bot]
cursor Bot reviewed Aug 21, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown

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.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 3c340d7. Configure here.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread README.md Resolved

Uh oh!

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

@arnabnandy7
arnabnandy7 force-pushed the fix/otlp-label-warning branch from 3c340d7 to c52f05a Compare August 21, 2026 15:33
@arnabnandy7

arnabnandy7 commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

@korniltsev @korniltsev-grafanista please review this one as well, thanks.

All reactions

Sorry, something went wrong.

Uh oh!

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

korniltsev-grafanista
korniltsev-grafanista reviewed Aug 22, 2026
View reviewed changes
Comment thread README.md Resolved

Uh oh!

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

@arnabnandy7
fix: warn about ignored OTLP application name and labels
4866c0c
Signed-off-by: Arnab Nandy <[email protected]>
@arnabnandy7
arnabnandy7 force-pushed the fix/otlp-label-warning branch from c52f05a to 4866c0c Compare August 22, 2026 10:21
@arnabnandy7 arnabnandy7 mentioned this pull request Aug 22, 2026
docs: document Java OTLP export limitations grafana/pyroscope#5547
Merged
@arnabnandy7
arnabnandy7 requested a review from korniltsev-grafanista August 22, 2026 10:29
korniltsev-grafanista
korniltsev-grafanista approved these changes Aug 24, 2026
View reviewed changes
@korniltsev-grafanista
korniltsev-grafanista enabled auto-merge (squash) August 24, 2026 09:29
@korniltsev-grafanista
korniltsev-grafanista merged commit a1fe0a8 into grafana:main Aug 24, 2026
32 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 19, 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

@cursor cursor[bot] cursor[bot] left review comments
@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.

OTLP export silently drops application name and labels

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.