Skip to content

Commit

Permalink
[internal/filter] Update standardFuncs list for filterottl (open-tele…
Browse files Browse the repository at this point in the history
…metry#21970)

* Update standardFuncs list

* changelog
  • Loading branch information
TylerHelmuth authored and varunraiko committed May 17, 2023
1 parent f5524a7 commit 37ff544
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .chloggen/filter-add-log.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: enhancement

# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
component: internal/filter

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Add `Log`, `UUID`, and `ParseJSON` converters to filterottl standard functions

# One or more tracking issues related to the change
issues: [21970]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:
3 changes: 3 additions & 0 deletions internal/filter/filterottl/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ func standardFuncs[K any]() map[string]ottl.Factory[K] {
ottlfuncs.NewIntFactory[K](),
ottlfuncs.NewConvertCaseFactory[K](),
ottlfuncs.NewSubstringFactory[K](),
ottlfuncs.NewLogFactory[K](),
ottlfuncs.NewUUIDFactory[K](),
ottlfuncs.NewParseJSONFactory[K](),
newDropFactory[K](),
)
}
Expand Down

0 comments on commit 37ff544

Please sign in to comment.