diff --git a/opentelemetry-exporter-gcp-trace/CHANGELOG.md b/opentelemetry-exporter-gcp-trace/CHANGELOG.md index 98c4a9bd..26e5911d 100644 --- a/opentelemetry-exporter-gcp-trace/CHANGELOG.md +++ b/opentelemetry-exporter-gcp-trace/CHANGELOG.md @@ -4,6 +4,8 @@ - Add support for Python 3.11 ([#240](https://github.com/GoogleCloudPlatform/opentelemetry-operations-python/pull/240)) +- Upgrade `opentelemetry-api` dependency to version 1.4 or newer + ([#238](https://github.com/GoogleCloudPlatform/opentelemetry-operations-python/pull/238)) ## Version 1.4.0 diff --git a/opentelemetry-exporter-gcp-trace/src/opentelemetry/exporter/cloud_trace/__init__.py b/opentelemetry-exporter-gcp-trace/src/opentelemetry/exporter/cloud_trace/__init__.py index ea25d26e..dddc32a5 100644 --- a/opentelemetry-exporter-gcp-trace/src/opentelemetry/exporter/cloud_trace/__init__.py +++ b/opentelemetry-exporter-gcp-trace/src/opentelemetry/exporter/cloud_trace/__init__.py @@ -478,7 +478,7 @@ def _extract_attributes( """Convert span.attributes to dict.""" attributes_dict: BoundedAttributes[ str, trace_types.AttributeValue - ] = BoundedAttributes(num_attrs_limit) + ] = BoundedAttributes(num_attrs_limit, immutable=False) invalid_value_dropped_count = 0 for ot_key, ot_value in attrs.items() if attrs else []: key = _truncate_str(ot_key, MAX_ATTR_KEY_BYTES)[0]