Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmd-azeez committed Jan 16, 2024
1 parent 1cf0fa7 commit 51e1086
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions go/adapter/datadog/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,15 +194,6 @@ func (d *DatadogAdapter) makeCallSpans(event observe.CallEvent, parentId *uint64
span := spans[len(spans)-1]
span.AddAllocation(alloc.MemoryGrowAmount())
}
if metric, ok := ev.(observe.MetricEvent); ok {
if metric.Format != observe.StatsdFormat {
log.Printf("Unsupported metric format: %v\n", metric.Format)
continue
}

// TODO: properly report metrics
fmt.Printf("metric: %s\n", metric.Message)
}
if tags, ok := ev.(observe.SpanTagsEvent); ok {
span := spans[len(spans)-1]
for _, tag := range tags.Tags {
Expand All @@ -215,10 +206,6 @@ func (d *DatadogAdapter) makeCallSpans(event observe.CallEvent, parentId *uint64
span.AddTag(parts[0], parts[1])
}
}
if l, ok := ev.(observe.LogEvent); ok {
// TODO: otel Go doesn't support logs yet
log.Println(l.Message)
}
}

return spans
Expand Down

0 comments on commit 51e1086

Please sign in to comment.