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

Add HttpSender abstraction #5505

Merged
merged 3 commits into from
Jun 13, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix exporter metrics
  • Loading branch information
jack-berg committed Jun 6, 2023
commit d9cdfbdad601c9717c8d76e3b465352ebc739995
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ public HttpExporter(
this.type = type;
this.httpSender = httpSender;
this.exporterMetrics =
ExporterMetrics.createHttpProtobuf(exporterName, type, meterProviderSupplier);
exportAsJson
? ExporterMetrics.createHttpJson(exporterName, type, meterProviderSupplier)
: ExporterMetrics.createHttpProtobuf(exporterName, type, meterProviderSupplier);
this.exportAsJson = exportAsJson;
}

Expand Down