// Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 //go:generate mdatagen metadata.yaml package tencentcloudlogserviceexporter // import "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/tencentcloudlogserviceexporter" import ( "context" "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/exporter" "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/tencentcloudlogserviceexporter/internal/metadata" ) // NewFactory creates a factory for tencentcloud LogService exporter. func NewFactory() exporter.Factory { return exporter.NewFactory( metadata.Type, createDefaultConfig, exporter.WithLogs(createLogsExporter, metadata.LogsStability)) } // CreateDefaultConfig creates the default configuration for exporter. func createDefaultConfig() component.Config { return &Config{} } func createLogsExporter( _ context.Context, set exporter.CreateSettings, cfg component.Config, ) (exp exporter.Logs, err error) { return newLogsExporter(set, cfg) }