Skip to content

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

@gboutry

Description

@gboutry

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions