Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
musa-asad committed Feb 6, 2025
1 parent 54491ce commit ffcdd39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exporter/awsemfexporter/emf_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ func (emf *emfExporter) pushMetricsData(_ context.Context, md pmetric.Metrics) e
for i := 0; i < rms.Len(); i++ {
rm := rms.At(i)
am := rm.Resource().Attributes()
fmt.Printf("Before AddEntity - Attributes: %v\n", rm.Resource().Attributes().AsRaw())
entity.AddEntity(am)
fmt.Printf("After AddEntity - Attributes: %v\n", rm.Resource().Attributes().AsRaw())
if am.Len() > 0 {
am.Range(func(k string, v pcommon.Value) bool {
labels[k] = v.Str()
Expand Down

0 comments on commit ffcdd39

Please sign in to comment.