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

[chore] update awscloudwatchlogs exporter to pass apicheck #26366

Merged
merged 8 commits into from
Sep 12, 2023
Prev Previous commit
Next Next commit
Fix apicheck error
  • Loading branch information
bryan-aguilar committed Sep 1, 2023
commit c939ddbfa010fb5397d7102269d31e19f464cb71
10 changes: 5 additions & 5 deletions exporter/awscloudwatchlogsexporter/factory.go
Original file line number Diff line number Diff line change
@@ -12,18 +12,18 @@ import (
"errors"

"go.opentelemetry.io/collector/component"
exp "go.opentelemetry.io/collector/exporter"
"go.opentelemetry.io/collector/exporter"
"go.opentelemetry.io/collector/exporter/exporterhelper"

"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awscloudwatchlogsexporter/internal/metadata"
"github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/awsutil"
)

func NewFactory() exp.Factory {
return exp.NewFactory(
func NewFactory() exporter.Factory {
return exporter.NewFactory(
metadata.Type,
createDefaultConfig,
exp.WithLogs(createLogsExporter, metadata.LogsStability))
exporter.WithLogs(createLogsExporter, metadata.LogsStability))
}

func createDefaultConfig() component.Config {
@@ -36,7 +36,7 @@ func createDefaultConfig() component.Config {
}
}

func createLogsExporter(_ context.Context, params exp.CreateSettings, config component.Config) (exp.Logs, error) {
func createLogsExporter(_ context.Context, params exporter.CreateSettings, config component.Config) (exporter.Logs, error) {
expConfig, ok := config.(*Config)
if !ok {
return nil, errors.New("invalid configuration type; can't cast to awscloudwatchlogsexporter.Config")