8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a32828 commit 7984be4Copy full SHA for 7984be4
localstack-core/localstack/services/logs/provider.py
@@ -81,9 +81,10 @@ def put_log_events(
81
value = float(value) if is_number(value) else 1
82
data = [{"MetricName": tf["metricName"], "Value": value}]
83
try:
84
- self.cw_client.put_metric_data(
85
- Namespace=tf["metricNamespace"], MetricData=data
86
- )
+ client = connect_to(
+ aws_access_key_id=context.account_id, region_name=context.region
+ ).cloudwatch
87
+ client.put_metric_data(Namespace=tf["metricNamespace"], MetricData=data)
88
except Exception as e:
89
LOG.info(
90
"Unable to put metric data for matching CloudWatch log events", e
0 commit comments