Skip to content
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

[chore][extension] update NotifyConfig contract #9005

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

haoqixu
Copy link
Member

@haoqixu haoqixu commented Nov 28, 2023

Description:
The collector implementation makes a copy of effective configuration before calling NotifyConfig so it's safe for the config watcher to save the pointer and use it later. It is resonable to promise this in the API contract.

Link to tracking Issue: open-telemetry/opentelemetry-collector-contrib#29277 (comment)

Testing: No behavior changes.

Documentation: godoc

@haoqixu
Copy link
Member Author

haoqixu commented Nov 28, 2023

cc @tigrannajaryan

Co-authored-by: Evan Bradley <11745660+evan-bradley@users.noreply.github.com>
Copy link

codecov bot commented Nov 28, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (05abe26) 91.56% compared to head (3101bc0) 91.56%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9005   +/-   ##
=======================================
  Coverage   91.56%   91.56%           
=======================================
  Files         316      316           
  Lines       17121    17121           
=======================================
  Hits        15676    15676           
  Misses       1150     1150           
  Partials      295      295           

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

@dmitryax dmitryax merged commit 7d2cb74 into open-telemetry:main Nov 28, 2023
32 checks passed
@github-actions github-actions bot added this to the next release milestone Nov 28, 2023
pantuza pushed a commit to pantuza/opentelemetry-collector that referenced this pull request Dec 8, 2023
**Description:**
The collector implementation makes a copy of effective configuration
before calling `NotifyConfig` so it's safe for the config watcher to
save the pointer and use it later. It is resonable to promise this in
the API contract.

**Link to tracking Issue:**
open-telemetry/opentelemetry-collector-contrib#29277 (comment)

---------

Co-authored-by: Evan Bradley <11745660+evan-bradley@users.noreply.github.com>
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.

4 participants