Skip to content

add support for elastic.otel.opamp.headers config#848

Merged
SylvainJuge merged 15 commits into
elastic:mainfrom
SylvainJuge:opamp-headers
Oct 21, 2025
Merged

add support for elastic.otel.opamp.headers config#848
SylvainJuge merged 15 commits into
elastic:mainfrom
SylvainJuge:opamp-headers

Conversation

@SylvainJuge

Copy link
Copy Markdown
Member

Fixes #833

Adds support for:

  • ELASTIC_OTEL_OPAMP_HEADERS configuration option
  • elastic.otel.opamp.headers java system property

Bonus:

  • simplify a bit the OpAMP logging on startup.
  • rename "configurationEndpoint" to "endpointUrl"

@SylvainJuge SylvainJuge self-assigned this Oct 21, 2025
@SylvainJuge
SylvainJuge requested a review from a team as a code owner October 21, 2025 12:52
LikeTheSalad
LikeTheSalad previously approved these changes Oct 21, 2025
return serviceName;
}
Map<String, String> resourceMap = properties.getMap("otel.resource.attributes");
if (resourceMap != null) {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

for review: here we can simplify a bit because an empty map is returned, we never get a null collection (now covered by tests).

LikeTheSalad
LikeTheSalad previously approved these changes Oct 21, 2025
@SylvainJuge
SylvainJuge merged commit d5d78d9 into elastic:main Oct 21, 2025
16 checks passed
@SylvainJuge
SylvainJuge deleted the opamp-headers branch October 21, 2025 15:39
@SylvainJuge SylvainJuge added the enhancement New feature or request label Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-java enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add support for ELASTIC_OTEL_OPAMP_HEADERS

2 participants