Skip to content

Commit

Permalink
Log error when translating span. (#1809)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuraag Agrawal authored Jan 7, 2021
1 parent 666a3df commit 0b4c121
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions exporter/awsxrayexporter/awsxray.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func newTraceExporter(
document, localErr := translator.MakeSegmentDocumentString(spans.At(k), resource,
config.(*Config).IndexedAttributes, config.(*Config).IndexAllAttributes)
if localErr != nil {
logger.Debug("Error translating span.", zap.Error(localErr))
totalDroppedSpans++
continue
}
Expand Down

0 comments on commit 0b4c121

Please sign in to comment.