Skip to content

Commit

Permalink
New component: sumologicprocessor (#23949)
Browse files Browse the repository at this point in the history
**Description:**

Adds Sumo Logic Processor

The Sumo Logic processor (config name: `sumologic`)
modifies the metadata on logs, metrics and traces sent to [Sumo
Logic][sumologic_webpage]
so that the Sumo Logic [apps][sumologic_apps] can make full use of the
ingested data.

[sumologic_webpage]: https://www.sumologic.com
[sumologic_apps]: https://www.sumologic.com/applications/

**Link to tracking Issue:** #23946

**Testing:**

- Unit tests
- Component is being used by our customers

**Documentation:** `README.md`

---------

Signed-off-by: Dominik Rosiek <[email protected]>
Co-authored-by: Daniel Jaglowski <[email protected]>
Co-authored-by: Andrzej Stencel <[email protected]>
  • Loading branch information
3 people authored Oct 30, 2023
1 parent 55afb0a commit e0c15a4
Show file tree
Hide file tree
Showing 36 changed files with 5,533 additions and 5 deletions.
20 changes: 20 additions & 0 deletions .chloggen/drosiek-sumologic-schema-processor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use this changelog template to create an entry for release notes.
# If your change doesn't affect end users, such as a test fix or a tooling change,
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: new_component

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

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: add Sumo Logic Processor

# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
issues: [23946]

# (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: move processor from https://github.com/SumoLogic/sumologic-otel-collector/ repository
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ processor/schemaprocessor/ @open-te
processor/servicegraphprocessor/ @open-telemetry/collector-contrib-approvers @jpkrohling @mapno
processor/spanmetricsprocessor/ @open-telemetry/collector-contrib-approvers @albertteoh
processor/spanprocessor/ @open-telemetry/collector-contrib-approvers @boostchicken
processor/sumologicprocessor/ @open-telemetry/collector-contrib-approvers @astencel-sumo @aboguszewski-sumo @sumo-drosiek
processor/tailsamplingprocessor/ @open-telemetry/collector-contrib-approvers @jpkrohling
processor/transformprocessor/ @open-telemetry/collector-contrib-approvers @TylerHelmuth @kentquirk @bogdandrutu @evan-bradley

Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ body:
- processor/servicegraph
- processor/span
- processor/spanmetrics
- processor/sumologic
- processor/tailsampling
- processor/transform
- receiver/activedirectoryds
Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ body:
- processor/servicegraph
- processor/span
- processor/spanmetrics
- processor/sumologic
- processor/tailsampling
- processor/transform
- receiver/activedirectoryds
Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/other.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ body:
- processor/servicegraph
- processor/span
- processor/spanmetrics
- processor/sumologic
- processor/tailsampling
- processor/transform
- receiver/activedirectoryds
Expand Down
10 changes: 5 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,6 @@ updates:
schedule:
interval: "weekly"
day: "wednesday"
- package-ecosystem: "gomod"
directory: "/exporter/kineticaexporter"
schedule:
interval: "weekly"
day: "wednesday"
- package-ecosystem: "gomod"
directory: "/exporter/loadbalancingexporter"
schedule:
Expand Down Expand Up @@ -632,6 +627,11 @@ updates:
schedule:
interval: "weekly"
day: "wednesday"
- package-ecosystem: "gomod"
directory: "/processor/sumologicprocessor"
schedule:
interval: "weekly"
day: "wednesday"
- package-ecosystem: "gomod"
directory: "/processor/tailsamplingprocessor"
schedule:
Expand Down
2 changes: 2 additions & 0 deletions cmd/otelcontribcol/builder-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ processors:
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/routingprocessor v0.88.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/servicegraphprocessor v0.88.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanmetricsprocessor v0.88.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor v0.88.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanprocessor v0.88.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/tailsamplingprocessor v0.88.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor v0.88.0
Expand Down Expand Up @@ -405,6 +406,7 @@ replaces:
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/webhookeventreceiver => ../../receiver/webhookeventreceiver
- github.com/open-telemetry/opentelemetry-collector-contrib/extension/observer/ecsobserver => ../../extension/observer/ecsobserver
- github.com/open-telemetry/opentelemetry-collector-contrib/processor/remoteobserverprocessor => ../../processor/remoteobserverprocessor
- github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor => ../../processor/sumologicprocessor
# see https://github.com/mattn/go-ieproxy/issues/45
- github.com/mattn/go-ieproxy => github.com/mattn/go-ieproxy v0.0.1
- github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest => ../../pkg/pdatatest
Expand Down
2 changes: 2 additions & 0 deletions cmd/otelcontribcol/components.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions cmd/otelcontribcol/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/processor/servicegraphprocessor v0.88.0
github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanmetricsprocessor v0.88.0
github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanprocessor v0.88.0
github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor v0.88.0
github.com/open-telemetry/opentelemetry-collector-contrib/processor/tailsamplingprocessor v0.88.0
github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor v0.88.0
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/activedirectorydsreceiver v0.88.0
Expand Down Expand Up @@ -1114,6 +1115,8 @@ replace github.com/open-telemetry/opentelemetry-collector-contrib/extension/obse

replace github.com/open-telemetry/opentelemetry-collector-contrib/processor/remoteobserverprocessor => ../../processor/remoteobserverprocessor

replace github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor => ../../processor/sumologicprocessor

replace github.com/mattn/go-ieproxy => github.com/mattn/go-ieproxy v0.0.1

replace github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest => ../../pkg/pdatatest
Expand Down
3 changes: 3 additions & 0 deletions cmd/otelcontribcol/processors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ func TestDefaultProcessors(t *testing.T) {
return cfg
},
},
{
processor: "sumologic",
},
}

assert.Equal(t, len(procFactories), len(tests), "All processors must be added to lifecycle tests")
Expand Down
1 change: 1 addition & 0 deletions processor/sumologicprocessor/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../../Makefile.Common
Loading

0 comments on commit e0c15a4

Please sign in to comment.