Skip to content

Commit

Permalink
Add changelog entry and make BoundedAttributes mutable
Browse files Browse the repository at this point in the history
  • Loading branch information
shevisj committed Apr 25, 2023
1 parent 9bd364d commit 859b3ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions opentelemetry-exporter-gcp-trace/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 859b3ba

Please sign in to comment.