Skip to content

Profiler configuration refactoring#2903

Merged
laurit merged 4 commits into
signalfx:mainfrom
robsunday:refactor-profiler-config
Jun 25, 2026
Merged

Profiler configuration refactoring#2903
laurit merged 4 commits into
signalfx:mainfrom
robsunday:refactor-profiler-config

Conversation

@robsunday

@robsunday robsunday commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

This PR contains refactoring of ProfilerConfiguration and related classes. These changes are made with remote config in mind and are extracted part of remote config -> effective config feedback mechanism, just for easier review.
Feedback mechanism is fully implemented in draft PR #2904

In scope:

  • ProfilerEnvVarConfiguration and ProfilerDeclarativeConfiguration are replaced by a single class - ProfilerConfiguration
  • ProfilerConfiguration is created by a factory appropriate for the agent configuration flavor (ProfilerEnvVarsConfigurationFactory / ProfilerDeclarativeConfigurationFactory).
  • After creation, ProfilerConfiguration is always available through ProfilerConfiguration.SUPPLIER
  • additional refactorings needed because environment config profiler configuration is no longer created multiple times

@robsunday robsunday requested review from a team as code owners June 24, 2026 11:48
@mergify

mergify Bot commented Jun 24, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

Test improved
DeclarativeConfigurationCustomizerProvider.class,
AutoConfigurationCustomizerProvider.class
})
public class ProfilerConfigurationInitializer

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

[for reviewer] This class configures ProfilerConfiguration.SUPPLIER with an instance of ProfilerConfiguration built by appropriate factory, depending on agent configuration type

@laurit laurit merged commit 4dd7429 into signalfx:main Jun 25, 2026
30 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants