Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: clear unwanted global variables in module init #3095

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix validation of baggage values
([#3058](https://github.com/open-telemetry/opentelemetry-python/pull/3058))

- 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 # type: ignore
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 # type: ignore
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 # type: ignore
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 # type: ignore
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 # type: ignore
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 # type: ignore