Skip to content

Commit b5a57a3

Browse files
feat: add support for labels when used with JFR and async-profiler's contextId (#1096)
* Add tags to java jfr with async-profiler's contextId * updated deps * rename Tags -> Labels, address codereview comments * Do not depende on multipart form field order - read whole form to memory * Fix lint issues * tiny fix for case when contextID is missing * add ingest unittest for jfr & labels * disable cognitive-complexity inspection for jfr parsing function * Address lint issues * Update jfr-parser version * Resolve conflicts. Fix test * replace json with protobuf * linter * use smaller jfr for testing * rm debug InstallPrefix * mv java fibonachi example to a separate folder * Do not fail if no tags specified * Add rideshare java example * linter * Revert "linter" This reverts commit 12a2c70. * Revert "Add rideshare java example" This reverts commit f70b18a. * Revert "mv java fibonachi example to a separate folder" This reverts commit ed249e3. Co-authored-by: Dmitry Filimonov <[email protected]>
1 parent e4ae62a commit b5a57a3

22 files changed

+635
-106
lines changed

pkg/convert/jfr/jfr_labels.pb.go

Lines changed: 240 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/convert/jfr/jfr_labels.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
syntax = "proto3";
2+
3+
//package io.pyroscope.labels.pb;
4+
option go_package = "github.com/pyroscope-io/pyroscope/pkg/convert/jfr";
5+
6+
message Context {
7+
map<int64, int64> labels = 1;
8+
}
9+
message LabelsSnapshot {
10+
map<int64, Context> contexts = 1;
11+
map<int64, string> strings = 2;
12+
}

0 commit comments

Comments
 (0)