Skip to content

Commit

Permalink
[pdata] export NewSliceFromRaw (#5679)
Browse files Browse the repository at this point in the history
* export NewSliceFromRaw

* Add changelog entry

* Update pdata/pcommon/alias.go

Co-authored-by: Dmitrii Anoshin <[email protected]>
Co-authored-by: Alex Boten <[email protected]>
  • Loading branch information
3 people authored Jul 15, 2022
1 parent a831d51 commit a7c047b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Add `linux-ppc64le` architecture to cross build tests in CI
- `client`: perform case insensitive lookups in case the requested metadata value isn't found (#5646)
- `loggingexporter`: Decouple `loglevel` field from level of logged messages (#5678)
- Expose `pcommon.NewSliceFromRaw` function (#5679)

### 🧰 Bug fixes 🧰

Expand Down
3 changes: 3 additions & 0 deletions pdata/pcommon/alias.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,6 @@ var (
// NewMapFromRaw creates a Map with values from the given map[string]interface{}.
NewMapFromRaw = internal.NewMapFromRaw
)

// NewSliceFromRaw creates a Slice with values from the given []interface{}.
var NewSliceFromRaw = internal.NewSliceFromRaw

0 comments on commit a7c047b

Please sign in to comment.