nucliadb-telemetry 6.3.5.post4023__py3-none-any.whl → 6.3.5.post4028__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of nucliadb-telemetry might be problematic. Click here for more details.

@@ -193,6 +193,24 @@ class Gauge:
193
193
  else:
194
194
  self.gauge.set(value)
195
195
 
196
+ def inc(self, value: Union[float, int], labels: Optional[Dict[str, str]] = None):
197
+ merged_labels = self.labels.copy()
198
+ merged_labels.update(labels or {})
199
+
200
+ if len(merged_labels) > 0:
201
+ self.gauge.labels(**merged_labels).inc(value)
202
+ else:
203
+ self.gauge.inc(value)
204
+
205
+ def dec(self, value: Union[float, int], labels: Optional[Dict[str, str]] = None):
206
+ merged_labels = self.labels.copy()
207
+ merged_labels.update(labels or {})
208
+
209
+ if len(merged_labels) > 0:
210
+ self.gauge.labels(**merged_labels).dec(value)
211
+ else:
212
+ self.gauge.dec(value)
213
+
196
214
  def remove(self, labels: Dict[str, str]):
197
215
  self.gauge.remove(*[labels[k] for k in self.labels.keys()])
198
216
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nucliadb_telemetry
3
- Version: 6.3.5.post4023
3
+ Version: 6.3.5.post4028
4
4
  Summary: NucliaDB Telemetry Library Python process
5
5
  Author-email: Nuclia <nucliadb@nuclia.com>
6
6
  License: AGPL
@@ -9,7 +9,7 @@ nucliadb_telemetry/grpc_sentry.py,sha256=3eS_DVIX5MzvbJBkykf8JyZUf1b_b9w1KLhjoiW
9
9
  nucliadb_telemetry/jaeger.py,sha256=HMQK8x_oaol5tCx3hCjaMG5Uzvsy_WWhKnD-FEZoYA4,7036
10
10
  nucliadb_telemetry/jetstream.py,sha256=E2_SY5-8ljhZAY0n_q-qlvewUmi2kF2En3mcqyA26kY,9977
11
11
  nucliadb_telemetry/logs.py,sha256=ag1e7tKEoNFgB1FuAmyTxdIHtTFwOJlGxPl2s1bhUic,9311
12
- nucliadb_telemetry/metrics.py,sha256=jSGecUI7qNbPm3OEzo11v4Zo-lUhXhZrhkWPtX1eGf8,8022
12
+ nucliadb_telemetry/metrics.py,sha256=euexqkmlZip6QFbMfvJW1fSuha96J4ZHnMWixeVJnAs,8652
13
13
  nucliadb_telemetry/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  nucliadb_telemetry/settings.py,sha256=Gr5rC9tBKHwck6sMMP76rn4Zgwh1w81dSzJJNcgkZvE,2511
15
15
  nucliadb_telemetry/tracerprovider.py,sha256=ycVqSMo0NTa7EEv4QLC8qAt0NYKbOy8uC9k14PjAiuk,3744
@@ -30,7 +30,7 @@ nucliadb_telemetry/tests/grpc/helloworld_pb2.py,sha256=ht4dmi0pAy6qDrwcjkbtSf_hO
30
30
  nucliadb_telemetry/tests/grpc/helloworld_pb2.pyi,sha256=mBZCQE6z7riQw6fOegJgZ5lHmXqO23_zxL8iQMqSqms,1191
31
31
  nucliadb_telemetry/tests/grpc/helloworld_pb2_grpc.py,sha256=_jxUNxl4Fx-JztK9RO5R6osjNP2sVNVPAxLnmczEYOc,2677
32
32
  nucliadb_telemetry/tests/grpc/helloworld_pb2_grpc.pyi,sha256=Y6teCx-PhPU-rI6w5ItLBKaTb34FLpngPnuDVWtNve4,958
33
- nucliadb_telemetry-6.3.5.post4023.dist-info/METADATA,sha256=FRieDwoFI6zK_X2-YYdS3spqdnBVpFHKVozCl4FJou4,11022
34
- nucliadb_telemetry-6.3.5.post4023.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
35
- nucliadb_telemetry-6.3.5.post4023.dist-info/top_level.txt,sha256=3qEHI_5ttqQIL2gkNYwSlKsFyBBiEzDiIy9UKISzOaQ,19
36
- nucliadb_telemetry-6.3.5.post4023.dist-info/RECORD,,
33
+ nucliadb_telemetry-6.3.5.post4028.dist-info/METADATA,sha256=VsjGGsKTUjMoK1kgbEanCBgbgtZgMfPA3u_K19I8Qlk,11022
34
+ nucliadb_telemetry-6.3.5.post4028.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
35
+ nucliadb_telemetry-6.3.5.post4028.dist-info/top_level.txt,sha256=3qEHI_5ttqQIL2gkNYwSlKsFyBBiEzDiIy9UKISzOaQ,19
36
+ nucliadb_telemetry-6.3.5.post4028.dist-info/RECORD,,