Open ericmittelhammer opened 3 years ago
If a metric event is submitted that contains a value of type that is invalid (other than count, gauge, or summary), the conditional will result in throwing this error, which is rather nonspecific: https://github.com/newrelic/kafka-connect-newrelic/blob/35e774c911754a1bedb0a29524e57e077c242444/newrelic-kafka-connector/src/main/java/com/newrelic/telemetry/metrics/MetricConverter.java#L188
type
count
gauge
summary
Better flow would be to explicitly guard for the correct value in count, gauge, or metric, and reject/warn specifically.
metric
If a metric event is submitted that contains a value of
type
that is invalid (other thancount
,gauge
, orsummary
), the conditional will result in throwing this error, which is rather nonspecific: https://github.com/newrelic/kafka-connect-newrelic/blob/35e774c911754a1bedb0a29524e57e077c242444/newrelic-kafka-connector/src/main/java/com/newrelic/telemetry/metrics/MetricConverter.java#L188Better flow would be to explicitly guard for the correct value in
count
,gauge
, ormetric
, and reject/warn specifically.