Skip to content

Commit 97b09de

Browse files
committed
Add changelog entry and make BoundedAttributes mutable
1 parent 768965c commit 97b09de

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

opentelemetry-exporter-gcp-trace/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
- Add support for Python 3.11
66
([#240](https://github.com/GoogleCloudPlatform/opentelemetry-operations-python/pull/240))
7+
- Upgrade `opentelemetry-api` dependency to version 1.4 or newer
8+
([#238](https://github.com/GoogleCloudPlatform/opentelemetry-operations-python/pull/238))
79

810
## Version 1.4.0
911

opentelemetry-exporter-gcp-trace/src/opentelemetry/exporter/cloud_trace/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ def _extract_attributes(
478478
"""Convert span.attributes to dict."""
479479
attributes_dict: BoundedAttributes[
480480
str, trace_types.AttributeValue
481-
] = BoundedAttributes(num_attrs_limit)
481+
] = BoundedAttributes(num_attrs_limit, immutable=False)
482482
invalid_value_dropped_count = 0
483483
for ot_key, ot_value in attrs.items() if attrs else []:
484484
key = _truncate_str(ot_key, MAX_ATTR_KEY_BYTES)[0]

0 commit comments

Comments
 (0)