This repository has been archived by the owner on Oct 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
v1/charm_tracing.py
library raises Exception on import opentelemetry
due to stale packages
#157
Labels
Comments
ca-scribner
added a commit
that referenced
this issue
Aug 2, 2024
fixes #157 by moving the stale package culling of charm_tracing.py ahead of all package imports and widening its scope to any opentelemetry package directories.
ca-scribner
added a commit
that referenced
this issue
Aug 2, 2024
fixes #157 by moving the stale package culling of charm_tracing.py ahead of all package imports and widening its scope to any opentelemetry package directories.
ca-scribner
added a commit
that referenced
this issue
Aug 2, 2024
fixes #157 by moving the stale package culling of charm_tracing.py ahead of all package imports and widening its scope to any opentelemetry package directories.
ca-scribner
added a commit
that referenced
this issue
Aug 6, 2024
fixes #157 by moving the stale package culling of charm_tracing.py ahead of all package imports and widening its scope to any opentelemetry package directories.
ca-scribner
added a commit
that referenced
this issue
Aug 6, 2024
fixes #157 by moving the stale package culling of charm_tracing.py ahead of all package imports and widening its scope to any opentelemetry package directories.
ca-scribner
added a commit
that referenced
this issue
Aug 6, 2024
fixes #157 by moving the stale package culling of charm_tracing.py ahead of all package imports and widening its scope to any opentelemetry package directories.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug Description
#151 attempts to address an issue where., during charm refresh, some opentelemetry tooling raises an Exception because empty leftover package directories are left in the virtual environment. #151 focued on applying the patch from within a decorator in the library, and only on the opentelemetry_sdk package.
It turns out that this problem can also occur:
import opentelemetry
, becauseopentelemetry/context/__init__.py
does a similar inspection of packagesThis means that the patch from #151 is too narrow (should apply to
opentelemetry_*
) and too late (must be done before importing any opentelemetry package)To Reproduce
(in a machine model)
to repro the original issue
Environment
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: