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

Wrapper methods don't update their context, making harder to trace / follow in logs #186

Open
gboutry opened this issue Jul 31, 2024 · 1 comment · May be fixed by #187
Open

Wrapper methods don't update their context, making harder to trace / follow in logs #186

gboutry opened this issue Jul 31, 2024 · 1 comment · May be fixed by #187

Comments

@gboutry
Copy link

gboutry commented Jul 31, 2024

The data_interfaces library defines 4 wrapper methods:




def either_static_or_dynamic_secrets(f):

These method do not update the wrapper context to the original method context, making it harder to trace / follow in logs.

In the case of the charm library: charms.tempo_k8s.v1.charm_tracing. it even makes impossible as the the trace_type method will fail: canonical/tempo-k8s-operator#155

Copy link

@gboutry gboutry linked a pull request Jul 31, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant