Skip to content

[RemoteConfig] Add Support for Memory profiler#402

Open
ysolomchenko wants to merge 5 commits into
signalfx:mainfrom
ysolomchenko:remote-config-memory-profiler
Open

[RemoteConfig] Add Support for Memory profiler#402
ysolomchenko wants to merge 5 commits into
signalfx:mainfrom
ysolomchenko:remote-config-memory-profiler

Conversation

@ysolomchenko

Copy link
Copy Markdown
Contributor

This PR adds support for the Memory Profiler in remote configuration.

@ysolomchenko
ysolomchenko requested review from a team as code owners July 10, 2026 07:23
Comment thread specification/opamp_datamodel.md Outdated

@pellared pellared left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a changelog entry?

Comment thread specification/opamp_datamodel.md

@MrAlias MrAlias left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The remote memory-profiler lifecycle conflicts with the stable configuration contract, so this should not merge until its precedence and disabled-state behavior are defined.

Comment on lines +321 to +324
* When `memory_profiler` is present, it indicates that the memory profiler
SHOULD be started if it is not currently running.
* When `memory_profiler` is omitted, it indicates that the memory profiler
SHOULD be stopped if it is currently running.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These bullets create a runtime lifecycle for SPLUNK_PROFILER_MEMORY_ENABLED that conflicts with the stable Instrumentation Libraries contract in specification/configuration.md: the initial setting SHOULD last for the application run, and a deactivated profiler MUST not add profiling overhead.

A process that starts with memory profiling disabled and later receives this payload cannot satisfy both documents. Startup-bound profilers must either ignore the update or retain hooks/callbacks while disabled. Please define the remote-config exception and precedence, including how unsupported transitions and the disabled-state overhead guarantee work, or keep memory-profiler enablement startup-only.

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 this pull request may close these issues.

5 participants