File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
opentelemetry-exporter-gcp-logging
opentelemetry-exporter-gcp-monitoring/src/opentelemetry/exporter/cloud_monitoring Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 22
33## Unreleased
44
5+ Added support for when ` bytes ` or ` list['bytes'] ` is in ` LogRecord.body ` and
6+ body is of type Mapping.
7+
58## Version 1.9.0a0
69
710Released 2025-02-03
Original file line number Diff line number Diff line change 5555)
5656from opentelemetry .sdk import version as opentelemetry_sdk_version
5757from opentelemetry .sdk .metrics .export import (
58+ ExponentialHistogram ,
59+ ExponentialHistogramDataPoint ,
5860 Gauge ,
5961 Histogram ,
6062 HistogramDataPoint ,
@@ -209,6 +211,12 @@ def _get_metric_descriptor(
209211 descriptor .metric_kind = MetricDescriptor .MetricKind .GAUGE
210212 elif isinstance (data , Histogram ):
211213 descriptor .metric_kind = MetricDescriptor .MetricKind .CUMULATIVE
214+ elif isinstance (data , ExponentialHistogram ):
215+ logger .warning (
216+ "Unsupported metric data type %s, ignoring it" ,
217+ type (data ).__name__ ,
218+ )
219+ return None
212220 else :
213221 # Exhaustive check
214222 _ : NoReturn = data
@@ -342,6 +350,10 @@ def export(
342350 continue
343351
344352 for data_point in metric .data .data_points :
353+ if isinstance (
354+ data_point , ExponentialHistogramDataPoint
355+ ):
356+ continue
345357 labels = {
346358 _normalize_label_key (key ): str (value )
347359 for key , value in (
You can’t perform that action at this time.
0 commit comments