@@ -275,7 +275,8 @@ public void registerDoubleCounterCallback(
275275 .setDescription (description )
276276 .setUnit (unit )
277277 .buildWithCallback (
278- proxiedDoubleObserver (name , description , unit , InstrumentType .OBSERVABLE_SUM , updater ));
278+ proxiedDoubleObserver (
279+ name , description , unit , InstrumentType .OBSERVABLE_COUNTER , updater ));
279280 }
280281
281282 /**
@@ -296,7 +297,8 @@ public void registerLongCounterCallback(
296297 .setDescription (description )
297298 .setUnit (unit )
298299 .buildWithCallback (
299- proxiedLongObserver (name , description , unit , InstrumentType .OBSERVABLE_SUM , updater ));
300+ proxiedLongObserver (
301+ name , description , unit , InstrumentType .OBSERVABLE_COUNTER , updater ));
300302 }
301303
302304 /**
@@ -319,7 +321,7 @@ public void registerDoubleUpDownCounterCallback(
319321 .setUnit (unit )
320322 .buildWithCallback (
321323 proxiedDoubleObserver (
322- name , description , unit , InstrumentType .OBSERVABLE_UP_DOWN_SUM , updater ));
324+ name , description , unit , InstrumentType .OBSERVABLE_UP_DOWN_COUNTER , updater ));
323325 }
324326
325327 /**
@@ -341,7 +343,7 @@ public void registerLongUpDownCounterCallback(
341343 .setUnit (unit )
342344 .buildWithCallback (
343345 proxiedLongObserver (
344- name , description , unit , InstrumentType .OBSERVABLE_UP_DOWN_SUM , updater ));
346+ name , description , unit , InstrumentType .OBSERVABLE_UP_DOWN_COUNTER , updater ));
345347 }
346348
347349 private Consumer <ObservableDoubleMeasurement > proxiedDoubleObserver (
0 commit comments