Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added transform processor from opentelemetry-collector-contrib #2560

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ This table represents the supported components of the ADOT Collector. The highli
| | [groupbytraceprocessor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/groupbytraceprocessor) | [logzioexporter](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/logzioexporter#logzio-exporter) | |
| | [tailsamplingprocessor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/tailsamplingprocessor) | [kafka](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/kafkaexporter) | |
| | [k8sattributesprocessor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/k8sattributesprocessor) | [loadbalancingexporter](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/loadbalancingexporter) | |
| | | [awscloudwatchlogsexporter](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/awscloudwatchlogsexporter) | |
| | [transformprocessor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/transformprocessor) | [awscloudwatchlogsexporter](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/awscloudwatchlogsexporter) | |


Besides the components that interact with telemetry signals directly from the previous table, there is also support to the following confmap providers:
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourceprocessor v0.90.1
github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanprocessor v0.90.1
github.com/open-telemetry/opentelemetry-collector-contrib/processor/tailsamplingprocessor v0.90.1
github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor v0.90.1
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awscontainerinsightreceiver v0.90.1
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awsecscontainermetricsreceiver v0.90.1
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awsxrayreceiver v0.90.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,8 @@ github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanprocesso
github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanprocessor v0.90.1/go.mod h1:BSLMtC09e0i7UoOve3Ds0AAWSuawx9I+dRyj9Jk7wHI=
github.com/open-telemetry/opentelemetry-collector-contrib/processor/tailsamplingprocessor v0.90.1 h1:49+SN78f/NAb92qL5Z9lBCEqXhqiRVU6YrzD1hREXmo=
github.com/open-telemetry/opentelemetry-collector-contrib/processor/tailsamplingprocessor v0.90.1/go.mod h1:tJX7GDrWEDhnfvHPkCKZAU+xQ2SeQJJsdmR73F6i/UM=
github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor v0.90.1 h1:+KymcJ8sjSl5IVeSWf6yndXJ8pr3BRlYw8AjkBQcD7Q=
github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor v0.90.1/go.mod h1:HkVWsD4zuHzUiaTB+6/mSko6HTUPmIK4C5xv2tDYdV4=
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awscontainerinsightreceiver v0.90.1 h1:burL0Emdzdd199FyAVoBH/DP9Tuo3/zUsXmOVLMk/Qk=
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awscontainerinsightreceiver v0.90.1/go.mod h1:IVdbzRl7tC4fDVc+X+/GcW5SvIdSRVG44qVoXW3leJY=
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awsecscontainermetricsreceiver v0.90.1 h1:rZyAwF+X4/LJW3Thbe5JoGfG1W9Ah4d8mAv0FwdJcqI=
Expand Down
2 changes: 2 additions & 0 deletions pkg/defaultcomponents/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import (
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourceprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/tailsamplingprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awscontainerinsightreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awsecscontainermetricsreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awsxrayreceiver"
Expand Down Expand Up @@ -128,6 +129,7 @@ func Components() (otelcol.Factories, error) {
batchprocessor.NewFactory(),
memorylimiterprocessor.NewFactory(),
k8sattributesprocessor.NewFactory(),
transformprocessor.NewFactory(),
}
processors, err := processor.MakeFactoryMap(processorList...)

Expand Down
3 changes: 2 additions & 1 deletion pkg/defaultcomponents/defaults_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const (
exportersCount = 16
receiversCount = 10
extensionsCount = 8
processorCount = 15
processorCount = 16
)

// Assert that the components behind feature gate are not in the default
Expand Down Expand Up @@ -105,5 +105,6 @@ func TestComponents(t *testing.T) {
assert.NotNil(t, processors["groupbytrace"])
assert.NotNil(t, processors["tail_sampling"])
assert.NotNil(t, processors["k8sattributes"])
assert.NotNil(t, processors["transform"])

}
1 change: 1 addition & 0 deletions testbed/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourceprocessor v0.90.1 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanprocessor v0.90.1 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/processor/tailsamplingprocessor v0.90.1 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor v0.90.1 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awscontainerinsightreceiver v0.90.1 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awsecscontainermetricsreceiver v0.90.1 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awsxrayreceiver v0.90.1 // indirect
Expand Down
2 changes: 2 additions & 0 deletions testbed/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,8 @@ github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanprocesso
github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanprocessor v0.90.1/go.mod h1:BSLMtC09e0i7UoOve3Ds0AAWSuawx9I+dRyj9Jk7wHI=
github.com/open-telemetry/opentelemetry-collector-contrib/processor/tailsamplingprocessor v0.90.1 h1:49+SN78f/NAb92qL5Z9lBCEqXhqiRVU6YrzD1hREXmo=
github.com/open-telemetry/opentelemetry-collector-contrib/processor/tailsamplingprocessor v0.90.1/go.mod h1:tJX7GDrWEDhnfvHPkCKZAU+xQ2SeQJJsdmR73F6i/UM=
github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor v0.90.1 h1:+KymcJ8sjSl5IVeSWf6yndXJ8pr3BRlYw8AjkBQcD7Q=
github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor v0.90.1/go.mod h1:HkVWsD4zuHzUiaTB+6/mSko6HTUPmIK4C5xv2tDYdV4=
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awscontainerinsightreceiver v0.90.1 h1:burL0Emdzdd199FyAVoBH/DP9Tuo3/zUsXmOVLMk/Qk=
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awscontainerinsightreceiver v0.90.1/go.mod h1:IVdbzRl7tC4fDVc+X+/GcW5SvIdSRVG44qVoXW3leJY=
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awsecscontainermetricsreceiver v0.90.1 h1:rZyAwF+X4/LJW3Thbe5JoGfG1W9Ah4d8mAv0FwdJcqI=
Expand Down
Loading