Skip to content

[BUG] salt.utils.tracing eagerly imports OpenTelemetry when tracing is disabled  #69855

Closed

Description

@dwoz

Description

salt.utils.tracing unconditionally imports the entire OpenTelemetry SDK at module load, even when tracing.enabled is False (the default). Because salt.utils.tracing is imported by every daemon entry point (salt.master, salt.minion, salt.channel.client, salt.channel.server, salt.utils.event, salt.netapi.rest_cherrypy.app, salt.utils.reactor), every Python process in the salt fleet pays the OTel import cost, regardless of whether tracing is used.

Activity

  1. added
    bug
    on Jul 23, 2026
  2. added this to the Argon v3008.3 milestone on Jul 23, 2026
  3. changed the title [-][BUG] salt.utils.tracing eagerly imports OpenTelemetry when tracing is disabled — ~225 MB baseline shift on 3008.x master[/-] [+][BUG] salt.utils.tracing eagerly imports OpenTelemetry when tracing is disabled [/+] on Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmemory-leak

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions