Skip to content

OpAMP thread dump - use custom message - #2984

Merged
breedx-splk merged 8 commits into
signalfx:mainfrom
breedx-splk:use_custom_message
Aug 11, 2026
Merged

OpAMP thread dump - use custom message#2984
breedx-splk merged 8 commits into
signalfx:mainfrom
breedx-splk:use_custom_message

Conversation

@breedx-splk

Copy link
Copy Markdown
Contributor

Switch from using hacky remote config to using the also hacky custom message.

# Conflicts:
#	opamp/src/main/java/com/splunk/opentelemetry/opamp/OpampActivator.java
#	opamp/src/test/java/com/splunk/opentelemetry/opamp/OpampActivatorTest.java
@breedx-splk
breedx-splk requested review from a team as code owners July 30, 2026 22:04
@breedx-splk
breedx-splk requested a review from a team as a code owner July 30, 2026 22:19
Comment thread control/src/main/java/com/splunk/opamp/remotecontrol/CommandDispatcherImpl.java Outdated
@robsunday

robsunday commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

I like this solution much more than the previous one! Good change.

Comment on lines +28 to +29
public static final String HACKY_CMD_CAPABILITY = "com.splunk.opamp.experimental_command/v1";
public static final String HACKY_CMD_TYPE = "command";

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

rename these fields

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

so the current idea is to set the type to command command and get the actual command from the message body, did you consider having separate types for different commands e.g. thread-dump?

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.

rename these fields

I think you're asking me to hide my shame. 🙈

so the current idea is to set the type to command command and get the actual command from the message body, did you consider having separate types for different commands e.g. thread-dump?

I did consider it, and @robsunday also pointed out something similar. I'm not sure that this will be around for long, or if it's even a good idea, so I thought it would be marginally better to keep it contained within one type. If we did want to promote commands up to type then we would probably want to consider a namespace so that all commands aren't in some flat hierarchy....but now it's already over-engineered.

If you feel strongly about this we can change it. I certainly don't have a strong preference.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I was thinking that this way the consumer of the message wouldn't need to parse the message body to know it is a thread dump which might make it easier to handle.

@breedx-splk
breedx-splk merged commit bacef74 into signalfx:main Aug 11, 2026
28 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 11, 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.

3 participants