Skip to content

Generalize remote config #107

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

Closed
wants to merge 10 commits into from
Closed

Conversation

cataphract
Copy link
Contributor

A general mechanism to subscribe to products. The user provides an arbitrary number of ProductListeners (listening to new configuration and to configuration renewal) and listeners running after all the ProductListeners have run.

Made a number of other improvements: RCTE2 support, check against the length, sending cached_target_files to avoid resending of configuration, and so on.

Conflicts:
	src/datadog/datadog_agent.cpp
	src/datadog/datadog_agent_config.cpp
	src/datadog/datadog_agent_config.h
	src/datadog/remote_config.cpp
	src/datadog/remote_config.h
	src/datadog/tracer.cpp
	src/datadog/tracer_config.cpp
	test/test_remote_config.cpp
	test/test_tracer.cpp
Directly converting a json node into std::vector<string::view> doesn't
owkr in older GCCs (tried: 8.3.0)
@cataphract cataphract requested a review from a team as a code owner May 16, 2024 10:52
@cataphract cataphract requested review from dmehala and removed request for a team May 16, 2024 10:52
@codecov-commenter
Copy link

codecov-commenter commented Jun 4, 2024

Codecov Report

Attention: Patch coverage is 85.22073% with 77 lines in your changes missing coverage. Please review.

Project coverage is 93.32%. Comparing base (bb5358e) to head (0d825f0).
Report is 73 commits behind head on main.

Files with missing lines Patch % Lines
src/datadog/remote_config.cpp 86.18% 55 Missing ⚠️
src/datadog/remote_config.h 82.97% 16 Missing ⚠️
src/datadog/datadog_agent.cpp 55.55% 4 Missing ⚠️
src/datadog/string_util.cpp 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #107      +/-   ##
==========================================
- Coverage   94.48%   93.32%   -1.16%     
==========================================
  Files          71       72       +1     
  Lines        3716     4120     +404     
==========================================
+ Hits         3511     3845     +334     
- Misses        205      275      +70     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@dmehala dmehala left a comment

Choose a reason for hiding this comment

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

I am working on a simpler implementation: https://github.com/DataDog/dd-trace-cpp/tree/dmehala/remote-config-module

ETA reviewable this week.

@dgoffredo
Copy link
Contributor

I am working on a simpler implementation: https://github.com/DataDog/dd-trace-cpp/tree/dmehala/remote-config-module

ETA reviewable this week.

The else if blocks in Manager::Manager might need to be if blocks, since the bitset can have multiple bits.

@dmehala
Copy link
Collaborator

dmehala commented Aug 15, 2024

Resolved in #130

@dmehala dmehala closed this Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants