Skip to content

Commit a7504f4

Browse files
authored
Add grafana-agent.java language mapping (#2866)
1 parent cb15308 commit a7504f4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/distributor/model/push.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func getProfileLanguageFromSpy(spyName string) string {
5959
return "ruby"
6060
case "nodespy":
6161
return "nodejs"
62-
case "javaspy":
62+
case "javaspy", "grafana-agent.java":
6363
return "java"
6464
case "pyroscope-rs":
6565
return "rust"

pkg/distributor/model/push_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ func TestProfileSeries_GetLanguage(t *testing.T) {
1414
{labels: []*typesv1.LabelPair{{Name: "pyroscope_spy", Value: "gospy"}}, want: "go"},
1515
{labels: []*typesv1.LabelPair{{Name: "pyroscope_spy", Value: "javaspy"}}, want: "java"},
1616
{labels: []*typesv1.LabelPair{{Name: "pyroscope_spy", Value: "dotnetspy"}}, want: "dotnet"},
17+
{labels: []*typesv1.LabelPair{{Name: "pyroscope_spy", Value: "grafana-agent.java"}}, want: "java"},
1718
{labels: []*typesv1.LabelPair{{Name: "pyroscope_spy", Value: ""}}, want: ""},
1819
}
1920
for _, tt := range tests {

0 commit comments

Comments
 (0)