Skip to content

Commit

Permalink
fix: clear key value in module level
Browse files Browse the repository at this point in the history
  • Loading branch information
gen-xu committed Jan 3, 2023
1 parent 0f9cfdd commit 015c9e1
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

- Clean `key`, `value` at module `__init__` after dynamically adding to `__all__`
([#3095](https://github.com/open-telemetry/opentelemetry-python/pull/3095))

## Version 1.15.0/0.36b0 (2022-12-09)

- Regenerate opentelemetry-proto to be compatible with protobuf 3 and 4
Expand Down
1 change: 1 addition & 0 deletions opentelemetry-api/src/opentelemetry/_logs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@
if not key.startswith("_"):
value.__module__ = __name__ # type: ignore
__all__.append(key)
del key, value
1 change: 1 addition & 0 deletions opentelemetry-sdk/src/opentelemetry/sdk/_logs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@
if not key.startswith("_"):
value.__module__ = __name__
__all__.append(key)
del key, value
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@
if not key.startswith("_"):
value.__module__ = __name__
__all__.append(key)
del key, value
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@
if not key.startswith("_"):
value.__module__ = __name__
__all__.append(key)
del key, value
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@
if not key.startswith("_"):
value.__module__ = __name__
__all__.append(key)
del key, value
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@
if not key.startswith("_"):
value.__module__ = __name__
__all__.append(key)
del key, value

0 comments on commit 015c9e1

Please sign in to comment.