Skip to content

feat(opentelemetry-node): central config support for 'logging_level' using OpAMP#834

Merged
trentm merged 16 commits intomainfrom
trentm-central-config3
Jun 23, 2025
Merged

feat(opentelemetry-node): central config support for 'logging_level' using OpAMP#834
trentm merged 16 commits intomainfrom
trentm-central-config3

Conversation

@trentm
Copy link
Member

@trentm trentm commented Jun 12, 2025

This adds initial central config support for EDOT Node.js.
Communication is over OpAMP, to an EDOT Collector using the
apmconfig extension (https://github.com/elastic/opentelemetry-collector-components/tree/main/extension/apmconfigextension)

Also:

  • Improve CLI option to mockopampserver to more easily play with remote config it offers.
  • Improve heartbeatIntervalSeconds normalization in opamp-client-node.

Refs: #628

status

The best way to play with this initially is the heavily-documented https://github.com/elastic/elastic-otel-node/blob/trentm-central-config3/examples/central-config.js

…using OpAMP

This adds initial central config support for EDOT Node.js.
Communication is over OpAMP, to an EDOT Collector using the
apmconfig extension (https://github.com/elastic/opentelemetry-collector-components/tree/main/extension/apmconfigextension)

Also:
- Improve CLI option to mockopampserver to more easily play with remote config it offers.
- Improve heartbeatIntervalSeconds normalization in opamp-client-node.

Refs: #628
@trentm trentm requested a review from david-luna June 12, 2025 23:11
@trentm trentm self-assigned this Jun 12, 2025
Copy link
Member Author

@trentm trentm left a comment

Choose a reason for hiding this comment

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

Thanks for the review.

trentm added 8 commits June 20, 2025 11:57
…point

This endpoint can be use to update the live Agent Config offered by a
running MockOpAMPServer. This can be useful for testing. This endpoint
is not part of OpAMP, so it is only enabled when 'testMode: true'.

Also add a '-T' option for starting the server in test mode.
Also add a feature to `runTestFixtures` that allows lazy eval of the
"env" values for the test fixtures. This is being used to allow
determining an envvar value *after* a test case has run (a setup case
that starts a MockOpAMPServer for some of the fixtures).
@trentm trentm marked this pull request as ready for review June 20, 2025 21:04
@trentm trentm requested review from a team as code owners June 20, 2025 21:04
@bmorelli25 bmorelli25 requested a review from theletterf June 20, 2025 21:08
Copy link
Member

@david-luna david-luna left a comment

Choose a reason for hiding this comment

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

I see XXX comments in your files. If they are temporal changes for the sake of testing you may change them to TODO

@trentm trentm merged commit 2012ad2 into main Jun 23, 2025
19 checks passed
@trentm trentm deleted the trentm-central-config3 branch June 23, 2025 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants