-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Use serializer exporter for sending metrics #37930
Use serializer exporter for sending metrics #37930
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test case using serializer to integration test? e.g. http://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/datadogexporter/integrationtest/integration_test.go#L546
Co-authored-by: Yang Song <songy23@users.noreply.github.com>
…-serializer-exporter
@@ -133,7 +133,7 @@ func (exp *logsExporter) consumeLogs(ctx context.Context, ld plog.Logs) (err err | |||
} | |||
} | |||
|
|||
payloads := exp.translator.MapLogs(ctx, ld, nil) | |||
payloads := exp.translator.MapLogs(ctx, ld, attributes.NewGatewayUsage()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @ogaca-dd
…-serializer-exporter
…-serializer-exporter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need rebase or merge main + make gotidy
. Otherwise LGTM
Co-authored-by: Yang Song <songy23@users.noreply.github.com>
…-serializer-exporter
…-serializer-exporter
need another rebase / merge main |
Description
The PR adds feature-gate
exporter.datadogexporter.metricexportserializerclient
. When enabled DDexporter would use serializerexporter for exporting metricsLink to tracking issue
Fixes
Testing
Documentation