Skip to content

Commit

Permalink
Change AttributeValue sequences from optional to nonoptional (#1855)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyleelin authored May 21, 2021
1 parent 7e1f247 commit 2098c56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Updated get_tracer to return an empty string when passed an invalid name
([#1854](https://github.com/open-telemetry/opentelemetry-python/pull/1854))
- Changed AttributeValue sequences to warn mypy users on adding None values to array
([#1855](https://github.com/open-telemetry/opentelemetry-python/pull/1855))

## [1.2.0, 0.21b0](https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.2.0-0.21b0) - 2021-05-11

Expand Down
8 changes: 4 additions & 4 deletions opentelemetry-api/src/opentelemetry/util/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
bool,
int,
float,
Sequence[Optional[str]],
Sequence[Optional[bool]],
Sequence[Optional[int]],
Sequence[Optional[float]],
Sequence[str],
Sequence[bool],
Sequence[int],
Sequence[float],
]
Attributes = Optional[Mapping[str, AttributeValue]]
AttributesAsKey = Tuple[
Expand Down

0 comments on commit 2098c56

Please sign in to comment.