-
Notifications
You must be signed in to change notification settings - Fork 189
[opamp-client] Add the ability to receive custom messages #2990
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jaydeluca
merged 7 commits into
open-telemetry:main
from
breedx-splk:add_custom_message_ability
Jul 17, 2026
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4094c7d
add the ability to support custom messages in opamp client.
breedx-splk f010f95
add missing source
breedx-splk 12da62f
address code review comments
breedx-splk feec013
Update opamp-client/src/test/java/io/opentelemetry/opamp/client/inter…
breedx-splk 40b9d10
Update opamp-client/src/main/java/io/opentelemetry/opamp/client/Opamp…
breedx-splk 3e51f8c
Update opamp-client/src/main/java/io/opentelemetry/opamp/client/inter…
breedx-splk 2669c30
spotless
breedx-splk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...opentelemetry/opamp/client/internal/impl/recipe/appenders/CustomCapabilitiesAppender.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| /* | ||
| * Copyright The OpenTelemetry Authors | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| package io.opentelemetry.opamp.client.internal.impl.recipe.appenders; | ||
|
|
||
| import java.util.function.Supplier; | ||
| import opamp.proto.AgentToServer; | ||
| import opamp.proto.CustomCapabilities; | ||
|
|
||
| /** | ||
| * This class is internal and is hence not for public use. Its APIs are unstable and can change at | ||
| * any time. TODO AgentToServer.custom_message support | ||
| */ | ||
|
breedx-splk marked this conversation as resolved.
|
||
| public final class CustomCapabilitiesAppender implements AgentToServerAppender { | ||
| private final Supplier<CustomCapabilities> customCapabilities; | ||
|
|
||
| public static CustomCapabilitiesAppender create(Supplier<CustomCapabilities> customCapabilities) { | ||
| return new CustomCapabilitiesAppender(customCapabilities); | ||
| } | ||
|
|
||
| private CustomCapabilitiesAppender(Supplier<CustomCapabilities> customCapabilities) { | ||
| this.customCapabilities = customCapabilities; | ||
| } | ||
|
|
||
| @Override | ||
| public void appendTo(AgentToServer.Builder builder) { | ||
| builder.custom_capabilities(customCapabilities.get()); | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.