Skip to content

Commit

Permalink
Rebuild initial pass at AIX to avoid complicated rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Myers committed Jun 20, 2024
1 parent 7cd29b1 commit 26ea13b
Show file tree
Hide file tree
Showing 11 changed files with 793 additions and 23 deletions.
2 changes: 2 additions & 0 deletions factories/exporters.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !aix

package factories

import (
Expand Down
36 changes: 36 additions & 0 deletions factories/exporters_aix.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// Copyright observIQ, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build aix

package factories

import (
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/fileexporter"
"go.opentelemetry.io/collector/exporter"
"go.opentelemetry.io/collector/exporter/loggingexporter"
"go.opentelemetry.io/collector/exporter/nopexporter"
"go.opentelemetry.io/collector/exporter/otlpexporter"
"go.opentelemetry.io/collector/exporter/otlphttpexporter"
)

// Restricted to a small subset of debugging exporters plus OTLP
// Many exporters aren't compatible with AIX
var defaultExporters = []exporter.Factory{
fileexporter.NewFactory(),
loggingexporter.NewFactory(),
nopexporter.NewFactory(),
otlpexporter.NewFactory(),
otlphttpexporter.NewFactory(),
}
2 changes: 2 additions & 0 deletions factories/processors.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !aix

package factories

import (
Expand Down
36 changes: 36 additions & 0 deletions factories/processors_aix.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// Copyright observIQ, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build aix

package factories

import (
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/attributesprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/groupbytraceprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor"
"go.opentelemetry.io/collector/processor"
"go.opentelemetry.io/collector/processor/batchprocessor"
"go.opentelemetry.io/collector/processor/processortest"
)

var defaultProcessors = []processor.Factory{
attributesprocessor.NewFactory(),
batchprocessor.NewFactory(),
processortest.NewNopFactory(),
groupbytraceprocessor.NewFactory(),
resourcedetectionprocessor.NewFactory(),
transformprocessor.NewFactory(),
}
2 changes: 2 additions & 0 deletions factories/receivers.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !aix

package factories

import (
Expand Down
69 changes: 69 additions & 0 deletions factories/receivers_aix.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
// Copyright observIQ, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build aix

package factories

import (
"github.com/observiq/bindplane-agent/receiver/pluginreceiver"
"github.com/observiq/bindplane-agent/receiver/sapnetweaverreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/collectdreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/fluentforwardreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/influxdbreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/jmxreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/memcachedreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mysqlreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/nginxreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/opencensusreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/postgresqlreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/rabbitmqreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/saphanareceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/snmpreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sqlqueryreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sqlserverreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/statsdreceiver"
"go.opentelemetry.io/collector/receiver"
"go.opentelemetry.io/collector/receiver/otlpreceiver"
"go.opentelemetry.io/collector/receiver/receivertest"
)

// Restricted list. Many receivers aren't supported on AIX.
// Additionally, we're only including those that make sense for
// An "unmanaged" config.
var defaultReceivers = []receiver.Factory{
collectdreceiver.NewFactory(),
filelogreceiver.NewFactory(),
fluentforwardreceiver.NewFactory(),
hostmetricsreceiver.NewFactory(),
influxdbreceiver.NewFactory(),
jmxreceiver.NewFactory(),
memcachedreceiver.NewFactory(),
mysqlreceiver.NewFactory(),
nginxreceiver.NewFactory(),
opencensusreceiver.NewFactory(),
otlpreceiver.NewFactory(),
pluginreceiver.NewFactory(),
postgresqlreceiver.NewFactory(),
rabbitmqreceiver.NewFactory(),
receivertest.NewNopFactory(),
saphanareceiver.NewFactory(),
sapnetweaverreceiver.NewFactory(),
snmpreceiver.NewFactory(),
sqlqueryreceiver.NewFactory(),
sqlserverreceiver.NewFactory(),
statsdreceiver.NewFactory(),
}
Loading

0 comments on commit 26ea13b

Please sign in to comment.