Skip to content

[receiver/discovery] Send delete entity events for discovered services #6260

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
merged 1 commit into from
May 29, 2025

Conversation

dmitryax
Copy link
Contributor

Send delete entity events once discovered services are removed to keep the "discovered services" view up-to-date.

This change requires pulling the upstream bugfix open-telemetry/opentelemetry-collector-contrib#40279.

This also moves service.name and service.type attributes to the set of identifying attributes according to the entity definition in the inventory service.

@dmitryax dmitryax requested review from a team as code owners May 28, 2025 23:33
Copy link

codecov bot commented May 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 44.92%. Comparing base (87bee7a) to head (925f397).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6260      +/-   ##
==========================================
+ Coverage   44.89%   44.92%   +0.03%     
==========================================
  Files         390      390              
  Lines       27006    26994      -12     
==========================================
+ Hits        12123    12127       +4     
+ Misses      14013    14003      -10     
+ Partials      870      864       -6     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dmitryax dmitryax force-pushed the fix-discovery-service-delete-events branch 5 times, most recently from adeaf5d to 256ec49 Compare May 29, 2025 21:10
Send delete entity events once discovered services are removed to keep the "discovered services" view up-to-date.

This change requires pulling the upstream bugfix open-telemetry/opentelemetry-collector-contrib#40279.

This also moves service.name and service.type attributes to the set of identifying attributes according to the entity definition in the inventory service.
@dmitryax dmitryax force-pushed the fix-discovery-service-delete-events branch from 256ec49 to 925f397 Compare May 29, 2025 21:10
@dmitryax dmitryax merged commit 787a646 into main May 29, 2025
232 checks passed
@dmitryax dmitryax deleted the fix-discovery-service-delete-events branch May 29, 2025 22:02
@github-actions github-actions bot locked and limited conversation to collaborators May 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants