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

Integ/open search exporter setup #21

Merged

Conversation

MitchellGale
Copy link

Addressing comments from open-telemetry#23819.

Comment on lines 23 to 29
func newTracesExporter(logger *zap.Logger, cfg *Config) (tracesExporter, error) {
if err := cfg.Validate(); err != nil {
return nil, err
}

return newSSOTracesExporter(logger, cfg)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should be able to define a dummy implementation of tracesExporter interface and return it here instead of returning SSOTracesExporter.

That should make it unnecessary to introduce sso_*.go and opensearch_bulk.go files.

Adding config.go content for OpenSearch exporter.

Adding new factory.go

Adding new sso model

OS bulk, readme and adding content to new factory.

Removed opensearch_bulk.go, sso_model.go, sso_trace_exporter.go, trace_exporter.go. sorted imports in factor.go.
@MitchellGale MitchellGale force-pushed the integ/OpenSearchExporter-setup branch from 7c55f9c to ee759b6 Compare July 5, 2023 21:33
@MitchellGale MitchellGale merged commit 22fcf52 into Integ/OpenSearchExporter-setup Jul 5, 2023
@MaxKsyunz MaxKsyunz deleted the integ/OpenSearchExporter-setup branch July 14, 2023 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants