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

[service] create service/hostcapabilities package #12375

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

jackgopack4
Copy link
Contributor

@jackgopack4 jackgopack4 commented Feb 12, 2025

Description

create service/hostcapabilities package to expose GetModuleInfos() from service/host. Also moves getExporters interface for GetExporters() to this package.

Link to tracking issue

Addresses planned work from #12296

Testing

none, creates interface for existing function

Documentation

changelog yaml

@jackgopack4 jackgopack4 marked this pull request as ready for review February 12, 2025 19:27
@jackgopack4 jackgopack4 requested a review from a team as a code owner February 12, 2025 19:27
Copy link

codecov bot commented Feb 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.54%. Comparing base (0831231) to head (0e5c388).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #12375   +/-   ##
=======================================
  Coverage   91.54%   91.54%           
=======================================
  Files         467      467           
  Lines       25623    25623           
=======================================
  Hits        23456    23456           
  Misses       1768     1768           
  Partials      399      399           

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

Copy link
Member

@mx-psi mx-psi left a comment

Choose a reason for hiding this comment

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

@jackgopack4 Can you fix the merge conflicts?

service/internal/graph/host.go Outdated Show resolved Hide resolved
service/internal/graph/host.go Outdated Show resolved Hide resolved
@jackgopack4 jackgopack4 force-pushed the expose-getmoduleinfos-component-host branch from 1a83c3b to 5e6ee04 Compare February 14, 2025 18:50
@jackgopack4 jackgopack4 marked this pull request as draft February 14, 2025 19:24
"go.opentelemetry.io/collector/service/internal/builders"
"go.opentelemetry.io/collector/service/internal/moduleinfo"
"go.opentelemetry.io/collector/service/internal/status"
"go.opentelemetry.io/collector/service/internal/zpages"
)

// TODO: remove as part of https://github.com/open-telemetry/opentelemetry-collector/issues/7370 for service 1.0
type getExporters interface {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

is removing this interface in favor of HostCapabilities what you intended @mx-psi ?

@jackgopack4 jackgopack4 marked this pull request as ready for review February 14, 2025 19:55
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.

2 participants