Skip to content

Commit

Permalink
Remove deprecated pdata.AttributeValueToString (#3953)
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
  • Loading branch information
bogdandrutu authored Sep 2, 2021
1 parent 5a07ead commit 107bd1a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions model/pdata/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -795,12 +795,6 @@ func (am AttributeMap) CopyTo(dest AttributeMap) {
*dest.orig = origs
}

// AttributeValueToString converts an OTLP AttributeValue object to its equivalent string representation
// Deprecated: use AttributeValue's String method instead.
func AttributeValueToString(attr AttributeValue) string {
return attr.AsString()
}

// AttributeMapToMap converts an OTLP AttributeMap to a standard go map
func AttributeMapToMap(attrMap AttributeMap) map[string]interface{} {
rawMap := make(map[string]interface{})
Expand Down

0 comments on commit 107bd1a

Please sign in to comment.