Skip to content

Commit

Permalink
fix: move source_type to same level as cloud.platform
Browse files Browse the repository at this point in the history
  • Loading branch information
nityanandagohain committed Aug 21, 2024
1 parent 0fe6a5f commit 381567a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions exporter/clickhouselogsexporter/logsv2/fingerprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ func ResourceHierarchy() *DimensionHierarchyNode {
return &DimensionHierarchyNode{
labels: []string{
"cloud.provider",
"source_type",
},
subHierachies: []DimensionHierarchyNode{{
labels: []string{"cloud.account.id"},
Expand All @@ -65,7 +64,10 @@ func ResourceHierarchy() *DimensionHierarchyNode {
},

subHierachies: []DimensionHierarchyNode{{
labels: []string{"cloud.platform"},
labels: []string{
"cloud.platform",
"source_type",
},

subHierachies: []DimensionHierarchyNode{{
labels: []string{
Expand Down
2 changes: 1 addition & 1 deletion exporter/clickhouselogsexporter/logsv2/fingerprint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestCalculateFingerprint(t *testing.T) {
{
Name: "Vector and gcp",
ResourceAttrs: map[string]any{"gcp.project": "myproject", "source_type": "gcp", "random_key": "val"},
FingerPrint: "source_type=gcp;gcp.project=myproject;hash=11162778839006855273",
FingerPrint: "gcp.project=myproject;source_type=gcp;hash=11162778839006855273",
},
}

Expand Down

0 comments on commit 381567a

Please sign in to comment.