Closed
Description
Expected Behavior
metric.flush_stats
has an optional lambda_context
argument, defaulting to None
.
Omitting this argument shouldn't cause issues, and didn't in earlier versions of the library.
Actual Behavior
Exception thrown: builtins.UnboundLocalError: local variable 'tags' referenced before assignment
Steps to Reproduce the Problem
metric.flush_stats()
Specifications
- Datadog Lambda Layer version: v6.98.0
- Python version: 3.10
Stacktrace
Traceback (most recent call last):
[...]
File "/home/lambda/[...]", line 55, in send
flush_stats()
File "/home/lambda/datadog_lambda/metric.py", line 136, in flush_stats
extension_thread_stats.flush(tags)
UnboundLocalError: local variable 'tags' referenced before assignment
Metadata
Metadata
Assignees
Labels
No labels