diff --git a/platform/melt/exporter.go b/platform/melt/exporter.go index ea67eb27..4782f304 100644 --- a/platform/melt/exporter.go +++ b/platform/melt/exporter.go @@ -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 { diff --git a/platform/melt/types.go b/platform/melt/types.go index eecc87fc..cc2fa536 100644 --- a/platform/melt/types.go +++ b/platform/melt/types.go @@ -58,6 +58,7 @@ type Entity struct { // Metric - structs for metrics type Metric struct { TypeName string + Description string ContentType string Unit string Type string