datadog_lambda 6.108.0__py3-none-any.whl → 6.109.0__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.
- datadog_lambda/dogstatsd.py +1 -1
- datadog_lambda/metric.py +12 -0
- datadog_lambda/version.py +1 -1
- {datadog_lambda-6.108.0.dist-info → datadog_lambda-6.109.0.dist-info}/METADATA +1 -1
- {datadog_lambda-6.108.0.dist-info → datadog_lambda-6.109.0.dist-info}/RECORD +9 -9
- {datadog_lambda-6.108.0.dist-info → datadog_lambda-6.109.0.dist-info}/LICENSE +0 -0
- {datadog_lambda-6.108.0.dist-info → datadog_lambda-6.109.0.dist-info}/LICENSE-3rdparty.csv +0 -0
- {datadog_lambda-6.108.0.dist-info → datadog_lambda-6.109.0.dist-info}/NOTICE +0 -0
- {datadog_lambda-6.108.0.dist-info → datadog_lambda-6.109.0.dist-info}/WHEEL +0 -0
datadog_lambda/dogstatsd.py
CHANGED
|
@@ -97,7 +97,7 @@ class DogStatsd(object):
|
|
|
97
97
|
value,
|
|
98
98
|
metric_type,
|
|
99
99
|
("|#" + ",".join(self.normalize_tags(tags))) if tags else "",
|
|
100
|
-
("|T" + str(timestamp)) if timestamp is not None else "",
|
|
100
|
+
("|T" + str(int(timestamp))) if timestamp is not None else "",
|
|
101
101
|
)
|
|
102
102
|
|
|
103
103
|
def _report(self, metric, metric_type, value, tags, timestamp):
|
datadog_lambda/metric.py
CHANGED
|
@@ -111,6 +111,18 @@ def lambda_metric(metric_name, value, timestamp=None, tags=None, force_async=Fal
|
|
|
111
111
|
if isinstance(timestamp, datetime):
|
|
112
112
|
timestamp = int(timestamp.timestamp())
|
|
113
113
|
|
|
114
|
+
else:
|
|
115
|
+
try:
|
|
116
|
+
timestamp = int(timestamp)
|
|
117
|
+
except Exception:
|
|
118
|
+
logger.debug(
|
|
119
|
+
"Ignoring metric submission for metric '%s' because the timestamp cannot "
|
|
120
|
+
"be turned into an integer: %r",
|
|
121
|
+
metric_name,
|
|
122
|
+
timestamp,
|
|
123
|
+
)
|
|
124
|
+
return
|
|
125
|
+
|
|
114
126
|
timestamp_floor = int((datetime.now() - timedelta(hours=4)).timestamp())
|
|
115
127
|
if timestamp < timestamp_floor:
|
|
116
128
|
logger.warning(
|
datadog_lambda/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "6.
|
|
1
|
+
__version__ = "6.109.0"
|
|
@@ -2,12 +2,12 @@ datadog_lambda/__init__.py,sha256=F_KG5XbNq9QEzbioec7DXzyTv3oYJHxeEgXE88dxXRQ,63
|
|
|
2
2
|
datadog_lambda/api.py,sha256=8deQN1DZFKW12vA4nMT70GX82-PRGf_88Bl7ufC7K-w,5322
|
|
3
3
|
datadog_lambda/cold_start.py,sha256=atTJjMJaKJlUet69TDKCF17Ox0rp0bAL6DHkXTCzbjw,8211
|
|
4
4
|
datadog_lambda/constants.py,sha256=0y6O9s_8RLflYR507SDMQjKmYY16tr1yi2KQuuF1GaY,1696
|
|
5
|
-
datadog_lambda/dogstatsd.py,sha256
|
|
5
|
+
datadog_lambda/dogstatsd.py,sha256=-2HiU3xvV_beXh8rI9oIXxSUmVcamI0KqAl7gc9LkYA,5216
|
|
6
6
|
datadog_lambda/extension.py,sha256=ZU64QpA2K9K9C0jfqusBgpiWQe0QA2dcJCNk7UgjVfw,621
|
|
7
7
|
datadog_lambda/fips.py,sha256=Z9z6iUEp9CwNvoVe3A0Ysu21qMSUGh-f7gw98cUEPwY,459
|
|
8
8
|
datadog_lambda/handler.py,sha256=VhdNUb_lpPRJ73h-fdDxxqSm0Ic_lkt4x_9Rt0amVV4,1312
|
|
9
9
|
datadog_lambda/logger.py,sha256=nGxNMouF7wcjmoPsgivzzjNLvSy3WbGtKElxOvITZDg,766
|
|
10
|
-
datadog_lambda/metric.py,sha256=
|
|
10
|
+
datadog_lambda/metric.py,sha256=qzWvHjcSaRoUz76YU9EG94OUZuEsCEH94PTN61EXakA,7900
|
|
11
11
|
datadog_lambda/module_name.py,sha256=5FmOCjjgjq78b6a83QePZZFmqahAoy9XHdUNWdq2D1Q,139
|
|
12
12
|
datadog_lambda/patch.py,sha256=6a-BqovSRKsU5hTQpzxgY-_bducT-UEVCLvd3fdxeWc,4710
|
|
13
13
|
datadog_lambda/span_pointers.py,sha256=6zpag8Bx0IZUqzTsl6F5cpJF6K2KYE2BZ5enCZNePMM,6340
|
|
@@ -18,12 +18,12 @@ datadog_lambda/tags.py,sha256=wy6uH8eAGMn7cfZEdHpL9uEGoM85bVyyXhYwSQtfHHc,2532
|
|
|
18
18
|
datadog_lambda/thread_stats_writer.py,sha256=VfD6G65zNHDA0nABhGOO0it7yqvn-p6ereQ329DA7r8,2894
|
|
19
19
|
datadog_lambda/tracing.py,sha256=nAkRTeLazcpFQgyxbCGj3Nq4D9wyS2avUcoACxuxZ50,54509
|
|
20
20
|
datadog_lambda/trigger.py,sha256=GWqYd5lS_dFWi5zWV9N-Rd9gi8ub1YY5_QM5u0IeRT4,13454
|
|
21
|
-
datadog_lambda/version.py,sha256=
|
|
21
|
+
datadog_lambda/version.py,sha256=vIrFRvuD38XMEgcLhXz0foMDxIiYwQB31CBBTuvZLCg,24
|
|
22
22
|
datadog_lambda/wrapper.py,sha256=Wk4SyDZR5_TPpr6xMl66dRiAnWq4yd3Sg5rLcC9FFHA,16044
|
|
23
23
|
datadog_lambda/xray.py,sha256=jvA4Fk76PLMgsjUoUZ7gp2otv53hFt39Nvso1ZNaivg,3749
|
|
24
|
-
datadog_lambda-6.
|
|
25
|
-
datadog_lambda-6.
|
|
26
|
-
datadog_lambda-6.
|
|
27
|
-
datadog_lambda-6.
|
|
28
|
-
datadog_lambda-6.
|
|
29
|
-
datadog_lambda-6.
|
|
24
|
+
datadog_lambda-6.109.0.dist-info/LICENSE,sha256=4yQmjpKp1MKL7DdRDPVHkKYc2W0aezm5SIDske8oAdM,11379
|
|
25
|
+
datadog_lambda-6.109.0.dist-info/LICENSE-3rdparty.csv,sha256=9CDAR1GKawwTbZkqt1RP0uwEcaRM3RhOeTB5tWXr8Ts,1381
|
|
26
|
+
datadog_lambda-6.109.0.dist-info/METADATA,sha256=cvOITNuDPCqXD-N9Pr9j2o8Q5r15fBdngJTKa6Lv9XA,7570
|
|
27
|
+
datadog_lambda-6.109.0.dist-info/NOTICE,sha256=Jue-d8mQ1ENIHDZdYc2-X8mVYtScXb8pzF1pTLN-kRc,141
|
|
28
|
+
datadog_lambda-6.109.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
29
|
+
datadog_lambda-6.109.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|