Skip to content

Commit

Permalink
[pdata] Update deprecation comment for InsertNull (#5994)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryax authored Aug 29, 2022
1 parent 1d6c295 commit 5039081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdata/pcommon/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ func (m Map) Insert(k string, v Value) {

// InsertNull adds a null Value to the map when the key does not exist.
// No action is applied to the map where the key already exists.
// Deprecated: [0.59.0] Use Insert(key, NewValueEmpty()) instead.
// Deprecated: [0.59.0] Use Get and UpsertEmpty instead.
func (m Map) InsertNull(k string) {
if _, existing := m.Get(k); !existing {
*m.getOrig() = append(*m.getOrig(), newAttributeKeyValueNull(k))
Expand Down

0 comments on commit 5039081

Please sign in to comment.