Skip to content

The 'memory leak' detection in cluster and worker aggregation prevents supporting prometheus and openmetrics in the same process #788

Closed

Description

@jdmarshall

There are better ways to prevent memory leaks for event listeners in unit tests that don't clobber runtime functionality in the bargain.

Activity

  1. added this to the v0.16 milestone on Jul 27, 2026
  2. self-assigned this
    on Jul 27, 2026
  3. added
    DX
    on Jul 27, 2026
  4. modified the milestones: v0.16, v1 on Jul 27, 2026
  5. jdmarshall commented on Jul 29, 2026

    @jdmarshall
    ContributorAuthor

    The PR I have open for this breaks the per instance lookup tables into file-scoped, and relies on the fact that any parallel requests have distinct IDs which will end up routing the responses to the proper listener.

    That could still have a problem with watch commands but is more of an issue when you're actually trying to debug telemetry instead of something else in your application. We could do something with a global variable to track the counter, so that reloads still result in monotonically increasing numbers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

DXbug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions