Skip to content

Commit 5f8b07f

Browse files
authored
[processor/unroll]: upstream unroll processor (#42500)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Adds a new log processor component that will take a log body of slices and expand them into multiple log entries within the ScopeLogs. This is a component we made in the [Bindplane Distro of the Collector](https://github.com/observIQ/bindplane-otel-collector/tree/main). We initially solved it for logs without proper parsing extensions. This pairs quite well with the [transformprocessor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/transformprocessor) to [Split](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/0c2a3255d7fb3eb3ec25f2eb2c16e644d9684ad8/pkg/ottl/ottlfuncs/README.md#split) and unroll say based off improperly formatted newlines depending on the receiver sending the data. <!-- Issue number (e.g. #1234) or full URL to issue, if applicable. --> #### Link to tracking issue Fixes #42491 <!--Describe what testing was performed and which tests were added.--> #### Testing Believe to be properly unit tested, however its been a second since I've added a component so happy to add some more tests where they are applicable. <!--Describe the documentation added.--> #### Documentation <!--Please delete paragraphs that you did not use before submitting.-->
1 parent 379c29b commit 5f8b07f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1584
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: new_component
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
7+
component: unrollprocessor
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Adds a processor that generically takes a log body of slices and creates new entries from that slice.
11+
12+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
13+
issues: [42491]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext:
19+
20+
# If your change doesn't affect end users or the exported elements of any package,
21+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
22+
# Optional: The change log or logs in which this entry should be included.
23+
# e.g. '[user]' or '[user, api]'
24+
# Include 'user' if the change is relevant to end users.
25+
# Include 'api' if there is a change to a library API.
26+
# Default: '[user]'
27+
change_logs: []

.codecov.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,10 @@ component_management:
544544
name: processor_transform
545545
paths:
546546
- processor/transformprocessor/**
547+
- component_id: processor_unroll
548+
name: processor_unroll
549+
paths:
550+
- processor/unrollprocessor/**
547551
- component_id: receiver_activedirectoryds
548552
name: receiver_activedirectoryds
549553
paths:

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ processor/spanprocessor/ @open-telemetry
217217
processor/sumologicprocessor/ @open-telemetry/collector-contrib-approvers @rnishtala-sumo @chan-tim-sumo @echlebek @amdprophet
218218
processor/tailsamplingprocessor/ @open-telemetry/collector-contrib-approvers @portertech
219219
processor/transformprocessor/ @open-telemetry/collector-contrib-approvers @TylerHelmuth @evan-bradley @edmocosta
220+
processor/unrollprocessor/ @open-telemetry/collector-contrib-approvers @axw @schmikei @rnishtala-sumo
220221
receiver/activedirectorydsreceiver/ @open-telemetry/collector-contrib-approvers @pjanotti
221222
receiver/aerospikereceiver/ @open-telemetry/collector-contrib-approvers @antonblock
222223
receiver/apachereceiver/ @open-telemetry/collector-contrib-approvers @colelaven @ishleenk17

.github/ISSUE_TEMPLATE/beta_stability.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ body:
218218
- processor/sumologic
219219
- processor/tailsampling
220220
- processor/transform
221+
- processor/unroll
221222
- receiver/activedirectoryds
222223
- receiver/aerospike
223224
- receiver/apache

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ body:
221221
- processor/sumologic
222222
- processor/tailsampling
223223
- processor/transform
224+
- processor/unroll
224225
- receiver/activedirectoryds
225226
- receiver/aerospike
226227
- receiver/apache

.github/ISSUE_TEMPLATE/feature_request.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ body:
215215
- processor/sumologic
216216
- processor/tailsampling
217217
- processor/transform
218+
- processor/unroll
218219
- receiver/activedirectoryds
219220
- receiver/aerospike
220221
- receiver/apache

.github/ISSUE_TEMPLATE/other.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ body:
215215
- processor/sumologic
216216
- processor/tailsampling
217217
- processor/transform
218+
- processor/unroll
218219
- receiver/activedirectoryds
219220
- receiver/aerospike
220221
- receiver/apache

.github/ISSUE_TEMPLATE/unmaintained.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ body:
220220
- processor/sumologic
221221
- processor/tailsampling
222222
- processor/transform
223+
- processor/unroll
223224
- receiver/activedirectoryds
224225
- receiver/aerospike
225226
- receiver/apache

.github/component_labels.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ processor/spanprocessor processor/span
198198
processor/sumologicprocessor processor/sumologic
199199
processor/tailsamplingprocessor processor/tailsampling
200200
processor/transformprocessor processor/transform
201+
processor/unrollprocessor processor/unroll
201202
receiver/activedirectorydsreceiver receiver/activedirectoryds
202203
receiver/aerospikereceiver receiver/aerospike
203204
receiver/apachereceiver receiver/apache

internal/tidylist/tidylist.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ processor/resourceprocessor
225225
processor/schemaprocessor
226226
processor/spanprocessor
227227
processor/sumologicprocessor
228+
processor/unrollprocessor
228229
receiver/activedirectorydsreceiver
229230
receiver/aerospikereceiver
230231
receiver/apachereceiver

0 commit comments

Comments
 (0)