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

Use Meter.Id for logging in DynatraceExporterV2 #3616

Merged
merged 1 commit into from
Feb 3, 2023
Merged
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ private String createGaugeLine(Meter meter, Measurement measurement) {
return createMetricBuilder(meter).setDoubleGaugeValue(value).serialize();
}
catch (MetricException e) {
logger.warn(METER_EXCEPTION_LOG_FORMAT, meter.getId().getName(), e.getMessage());
logger.warn(METER_EXCEPTION_LOG_FORMAT, meter.getId(), e.getMessage());
}

return null;
Expand All @@ -191,7 +191,7 @@ private String createCounterLine(Meter meter, Measurement measurement) {
return createMetricBuilder(meter).setDoubleCounterValueDelta(measurement.getValue()).serialize();
}
catch (MetricException e) {
logger.warn(METER_EXCEPTION_LOG_FORMAT, meter.getId().getName(), e.getMessage());
logger.warn(METER_EXCEPTION_LOG_FORMAT, meter.getId(), e.getMessage());
}

return null;
Expand Down Expand Up @@ -241,7 +241,7 @@ private Stream<String> createSummaryLine(Meter meter, double min, double max, do
return Stream.of(line);
}
catch (MetricException e) {
logger.warn(METER_EXCEPTION_LOG_FORMAT, meter.getId().getName(), e.getMessage());
logger.warn(METER_EXCEPTION_LOG_FORMAT, meter.getId(), e.getMessage());
}

return Stream.empty();
Expand Down