Skip to content

Commit

Permalink
include description and unit from melt metric
Browse files Browse the repository at this point in the history
  • Loading branch information
harshitrjpt committed Mar 13, 2024
1 parent 14f02b9 commit 62f85b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion platform/melt/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,9 @@ func (exp *Exporter) buildSpansPayload(entities []*Entity) *collspans.ExportTrac

func (exp *Exporter) createOtelMetric(m *Metric) *metrics.Metric {
otm := &metrics.Metric{
Name: m.TypeName,
Name: m.TypeName,
Description: m.Description,
Unit: m.Unit,
}

switch m.ContentType {
Expand Down
1 change: 1 addition & 0 deletions platform/melt/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ type Entity struct {
// Metric - structs for metrics
type Metric struct {
TypeName string
Description string
ContentType string
Unit string
Type string
Expand Down

0 comments on commit 62f85b1

Please sign in to comment.