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 — Sync fork with upstream async-profiler 4.5 by arnabnandy7 · Pull Request #21 · grafana/pyroscope-async-profiler

Conversation

@arnabnandy7

@arnabnandy7 arnabnandy7 commented Jul 22, 2026

Copy link
Copy Markdown

What changed

  • Merge upstream async-profiler v4.5 into Grafana's fork.
  • Preserve Grafana-specific context ID, span ID/name, and 128-bit trace ID support while adopting upstream's updated JNI native-registration shape.
  • Set the fork build version to 4.5.0.0.
  • Retain the fork's intentional removal of .licenserc.yaml.

Why

Upstream async-profiler 4.5 includes the required OTLP fix through async-profiler#1768. A Grafana fork release is needed before pyroscope-java can consume it without losing fork-specific behavior.

Impact and follow-up

After this is merged, publish v4.5.0.0, update pyroscope-java, and rerun the Docker integration test against Pyroscope 2.1.1. Until separate service.name support lands upstream, the test should query unknown_service or otherwise isolate the OTLP workload, then verify the Fib profile is queryable.

Validation

  • git diff --check passes.
  • Merge contains no unresolved conflict markers or index entries.
  • Local Linux build could not complete because WSL lacks JDK development headers (jvmti.h) and installing them requires interactive sudo access.
  • Docker integration testing was unavailable because Docker Desktop is not running.

Closes #20

Sorry, something went wrong.

Uh oh!

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

All reactions
apangin and others added 30 commits April 15, 2026 19:38
@apangin
dumpOtlp() should accept Counter argument (async-profiler#1728)
f6ca3c1
@apangin
Updated links to v4.4
d3e30d9
@benty-amzn
Add workflow to post binary size comparison to pull request comments (a…
5853965
…sync-profiler#1722)
@benty-amzn
Normalize Makefile on 7 char short hashes (async-profiler#1732)
b360918
@apangin
Use .yml extension for workflows
b2a98f5
@apangin
Relax ttsp test condition to account for systems with restricted pe…
5fbbaf2
…rf_events
@benty-amzn
Move otlp proto jar updates into a script (async-profiler#1733)
2a1b41a
@benty-amzn
Compile c++ with -fno-rtti (async-profiler#1734)
c495763
@apangin
Add popular agents directories to .gitignore
2339f99
@benty-amzn
Add support for HotCodeHeap (async-profiler#1737)
033252b
@apangin
Support building jfr-converter as a GraalVM Native Image (async-profi…
5c5a45e
…ler#1739)
@wind57
Minor fix in the FlameGraph Interpretation doc (async-profiler#1741)
20e0b5c
Signed-off-by: wind57 <[email protected]>
@apangin
Heatmap start time is inaccurate
ed27389
@apangin
Fixed layout of the heatmap scale panel
58a91a5
@benty-amzn
Fix binary size comparison workflow to not rely on eventually-consist…
d323c77
…ent APIs (async-profiler#1748)
@apangin
Prefer non-real-time signals for profiling (async-profiler#1749)
273b7ba
@apangin
Fixed visualization of native methods on the Heatmap (async-profiler#…
8b4444a
…1752)
@alevymyers @apangin
Re-register custom events on every JFR chunk (async-profiler#1740)
e421f2d
Co-authored-by: Andrei Pangin <[email protected]>
@benty-amzn
Flush wall clock events on dump or jfr chunk rotation (async-profiler…
1e7c44a
…#1746)
@apangin
Span API for latency profiling (async-profiler#1755)
019123b
@apangin
Retire AL2 as a test platform (async-profiler#1759)
4869584
@apangin
async-profiler#1589: Fix flaky datagramSocketLock test
656d96b
@apangin
Async-profiler should choose the same clock for timestamps as JFR (as…
4a7eb48
…ync-profiler#1760)
@apangin
Parse DWARF unwinding info in .debug_frame section (async-profiler#1758)
c5c8d9f
@apangin
Span API: added Recording.clockFrequency() method (async-profiler#1763)
f9e3b91
@apangin
Fix vtable test failures on JDK 27 (async-profiler#1765)
5026f38
@apangin
Fix full-match branch in instrument.cpp (async-profiler#1766)
9cb358e
@apangin
Do not use TSC on x86 if JFR fails to detect TSC frequency (async-pro…
7a321b7
…filer#1767)
@apangin
Upgrade to opentelemetry-proto v1.10.0 (async-profiler#1768)
a325d1e
@apangin
Parse only essential libraries at load time (async-profiler#1769)
589e9c8
cursor[bot]
cursor Bot reviewed Jul 22, 2026
View reviewed changes
Comment thread src/flightRecorder.cpp Resolved

Uh oh!

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

Comment thread src/javaApi.cpp Resolved

Uh oh!

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

cursor[bot]
cursor Bot reviewed Jul 22, 2026
View reviewed changes
Comment thread src/api/one/profiler/Span.java Resolved

Uh oh!

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

@korniltsev-grafanista

korniltsev-grafanista commented Jul 22, 2026

Copy link
Copy Markdown

what are these changes?

dd29f38
54029e5

All reactions

Sorry, something went wrong.

Uh oh!

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

@arnabnandy7

arnabnandy7 commented Jul 22, 2026

Copy link
Copy Markdown
Author

what are these changes?

dd29f38 54029e5

@korniltsev-grafanista those were follow-up fixes I added in response to Cursor Bugbot findings:

  • 54029e5 checks that the last profile sample is within both the start and end bounds of a span. 52bfece preserves the existing fallback-buffer behavior.
  • dd29f38 avoids exposing Recording.RUNNING before the native JFR recorder is active and keeps the Java/native clocks aligned if JVM counter-clock setup fails.

They are not required for the 4.5 fork sync and introduce changes beyond upstream v4.5. I can revert these commits and keep this PR limited to the upstream merge plus Grafana-specific workflow and release adjustments, with the runtime fixes proposed upstream separately.

All reactions

Sorry, something went wrong.

Uh oh!

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

cursor[bot]
cursor Bot reviewed Jul 22, 2026
View reviewed changes
Comment thread src/converter/one/convert/Filter.java Resolved

Uh oh!

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

korniltsev-grafanista
korniltsev-grafanista requested changes Jul 23, 2026
View reviewed changes

@korniltsev-grafanista korniltsev-grafanista 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.

we don't use span profiling.

revert your fixes in this branch. Ignore bugbot complains regarding this.

bonus points if you investigate and verify the alleged issues and report upstream if you believe they're valid.

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
This was referenced Jul 23, 2026
Span sampling and converter use inconsistent interval boundary semantics async-profiler/async-profiler#1772
Closed
Recording state can become RUNNING before the native JFR recorder is active async-profiler/async-profiler#1773
Closed
Failed Span clock synchronization is cached and not retried async-profiler/async-profiler#1774
Closed
@arnabnandy7

arnabnandy7 commented Jul 23, 2026

Copy link
Copy Markdown
Author

revert your fixes in this branch. Ignore bugbot complains regarding this.

bonus points if you investigate and verify the alleged issues and report upstream if you believe they're valid.

@korniltsev-grafanista it's now reverted and issues created in upstream for all 3 reported issues to keep this sync a clean upgrade PR.

All reactions

Sorry, something went wrong.

Uh oh!

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

@arnabnandy7
arnabnandy7 requested a review from korniltsev-grafanista July 23, 2026 09:13
korniltsev-grafanista
korniltsev-grafanista requested changes Jul 23, 2026
View reviewed changes

@korniltsev-grafanista korniltsev-grafanista 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.

remove your fixes and reverted fixes from the branch and force push

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
@arnabnandy7
arnabnandy7 force-pushed the agent/upgrade-async-profiler-4.5 branch from 955d280 to aa606ad Compare July 23, 2026 10:28
@arnabnandy7
arnabnandy7 requested a review from korniltsev-grafanista July 23, 2026 10:29
cursor[bot]
cursor Bot reviewed Jul 23, 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 2 potential issues.

Fix All in Cursor

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

Reviewed by Cursor Bugbot for commit aa606ad. Configure here.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread pom.xml
<groupId>tools.profiler</groupId>
<artifactId>async-profiler</artifactId>
<version>4.4</version>
<version>4.5</version>

@cursor cursor Bot Jul 23, 2026

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.

Stale Maven manifest path

Medium Severity

The API jar manifest moved to src/api/META-INF/MANIFEST.MF and Makefile was updated, but pom.xml still points at the removed src/api/one/profiler/MANIFEST.MF. Maven packaging no longer picks up Premain-Class / Agent-Class, so Maven-built agent jars lose their Java agent entry points.

Additional Locations (1)
  • Makefile#L77-L78
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit aa606ad. Configure here.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread src/javaApi.cpp Resolved

Uh oh!

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

korniltsev-grafanista
korniltsev-grafanista approved these changes Jul 23, 2026
View reviewed changes
korniltsev-grafanista
korniltsev-grafanista requested changes Jul 23, 2026
View reviewed changes

@korniltsev-grafanista korniltsev-grafanista 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.

Grafana Labs require all contributions to be signed. Please sign and force push

Sorry, something went wrong.

Uh oh!

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

All reactions
@arnabnandy7

arnabnandy7 commented Jul 23, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Author

@korniltsev-grafanista my sign is already present in CLA.

image

The CLA check is blocked because the upstream v4.5 merge introduces commits authored by upstream maintainers who have not signed Grafana’s CLA.

Would you prefer that I rebuild this as a squash import of the v4.5 tree, preserving upstream attribution and SHAs in the commit message, or can a repository administrator waive/allowlist the upstream authors for this sync?

All reactions

Sorry, something went wrong.

Uh oh!

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

@arnabnandy7
arnabnandy7 requested a review from korniltsev-grafanista July 23, 2026 13:58
@korniltsev-grafanista

korniltsev-grafanista commented Jul 23, 2026

Copy link
Copy Markdown
Screenshot 2026-07-23 at 8 57 12 pm I was referring to git signing. The "Verified" bage. Please sign your commits with gpg or ssh.
arnabnandy7 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

arnabnandy7 added 3 commits July 23, 2026 19:36
@arnabnandy7
Merge tag 'v4.5' into agent/upgrade-async-profiler-4.5
d347e0e
# Conflicts:
#	.licenserc.yaml
#	Makefile
#	src/javaApi.cpp
#	src/profiler.cpp
@arnabnandy7
Harden workflows and stabilize integration tests
e14d39f
@arnabnandy7
Retry flaky ARM64 integration tests
fa8c90b
@arnabnandy7
arnabnandy7 force-pushed the agent/upgrade-async-profiler-4.5 branch from aa606ad to fa8c90b Compare July 23, 2026 14:07
@github-actions

github-actions Bot commented Jul 23, 2026

Copy link
Copy Markdown

Signed commits report

5 of 35 commits between feat/context_id and agent/upgrade-async-profiler-4.5 could not be fully verified:

Commit Author Reason Message
b2a98f5f Andrei Pangin unsigned Use .yml extension for workflows
5fbbaf2c Andrei Pangin unsigned Relax ttsp test condition to account for systems with restricted perf_events
2339f996 Andrei Pangin unsigned Add popular agents directories to .gitignore
35171b80 Andrei Pangin unsigned Release 4.5
11aaea31 Andrei Pangin unsigned Fixed build failure when protobuf classes are missing

This repository requires all commits to be signed. See GitHub docs on commit signature verification.

All reactions

Sorry, something went wrong.

Uh oh!

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

@arnabnandy7

arnabnandy7 commented Jul 23, 2026

Copy link
Copy Markdown
Author

@korniltsev-grafanista it's done

image
All reactions

Sorry, something went wrong.

Uh oh!

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

korniltsev-grafanista
korniltsev-grafanista approved these changes Jul 23, 2026
View reviewed changes
@korniltsev-grafanista

korniltsev-grafanista commented Jul 23, 2026

Copy link
Copy Markdown

oh, I will need to do skmething with Andrei's commits too :(

arnabnandy7 reacted with confused emoji
All reactions
  • 😕 1 reaction

Sorry, something went wrong.

Uh oh!

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

@korniltsev-grafanista

korniltsev-grafanista commented Jul 27, 2026

Copy link
Copy Markdown

fyi: I've opened an IT ticket to exempt https://github.com/grafana/pyroscope-async-profiler from required signed commits

arnabnandy7 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@korniltsev-grafanista
korniltsev-grafanista merged commit 934b636 into grafana:feat/context_id Jul 29, 2026
56 of 58 checks passed

Uh oh!

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

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
+1 more reviewer
@github-advanced-security github-advanced-security[bot] github-advanced-security[bot] left review comments
Reviewers whose approvals may not affect merge requirements

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.

Sync fork with upstream async-profiler 4.5 and publish v4.5.0.0

Uh oh!

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

7 participants

@arnabnandy7 @korniltsev-grafanista @github-advanced-security @apangin @benty-amzn @wind57 @alevymyers
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.