-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[component] Change component.Type underlying type to a struct #9472
Conversation
d102e76
to
51cf15b
Compare
@@ -155,14 +157,18 @@ func MustNewType(strType string) Type { | |||
// collecting metrics, traces and logs, this can expand in the future. | |||
type DataType = Type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am keeping this for now, but we can revisit once we tackle #9429
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(The alternative is to change this to type DataType string
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is an alias to Type because we use component.ID
(which is not generic) for the pipeline.ID
. Because of that we made this equal with Type.
**Description:** Replaces usages of `component.Type(..)` by `component.MustNewType` **Link to tracking Issue:** Needed for open-telemetry/opentelemetry-collector/pull/9472
25ae139
to
da47a2d
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9472 +/- ##
==========================================
- Coverage 90.62% 90.60% -0.02%
==========================================
Files 347 347
Lines 18238 18240 +2
==========================================
- Hits 16528 16527 -1
- Misses 1381 1383 +2
- Partials 329 330 +1 ☔ View full report in Codecov by Sentry. |
…1075) **Description:** Another PR needed for open-telemetry/opentelemetry-collector/pull/9472
…ame` when passing literal strings (#31125) **Description:** Runs the following commands: - `rg "component.NewID\(\".*?\"\)" -l | xargs sd 'component.NewID\((".*?")\)' 'component.MustNewID($1)'` - `rg "component.NewIDWithName\(\".*?\"" -l | xargs sd 'component.NewIDWithName\((".*?")' 'component. MustNewIDWithName($1'` Additionally, makes some manual fixes Needed for open-telemetry/opentelemetry-collector/pull/9472 **Link to tracking Issue:** open-telemetry/opentelemetry-collector/issues/9208
**Description:** More changes in tests for open-telemetry/opentelemetry-collector/pull/9472 **Link to tracking Issue:** open-telemetry/opentelemetry-collector/pull/9208
**Description**: Some more changes in tests for open-telemetry/opentelemetry-collector/pull/9472 **Link to tracking Issue**: open-telemetry/opentelemetry-collector/issues/9208
I think open-telemetry/opentelemetry-collector-contrib/pull/31263 should fix the remaining issues with contrib tests |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
**Description:** Needed for open-telemetry/opentelemetry-collector/pull/9472
cc @open-telemetry/collector-approvers this is ready to review, but I won't merge this for v0.96.0, will wait until after the release |
**Description:** Include open-telemetry/opentelemetry-collector/pull/9472 --------- Signed-off-by: Pablo Baeyens <[email protected]>
**Description:** Include open-telemetry/opentelemetry-collector/pull/9472 --------- Signed-off-by: Pablo Baeyens <[email protected]>
**Description:** Needed for open-telemetry/opentelemetry-collector/pull/9472
**Description:** Include open-telemetry/opentelemetry-collector/pull/9472 --------- Signed-off-by: Pablo Baeyens <[email protected]>
**Description:** Needed for open-telemetry/opentelemetry-collector/pull/9472
**Description:** Include open-telemetry/opentelemetry-collector/pull/9472 --------- Signed-off-by: Pablo Baeyens <[email protected]>
Description:
Follow up to #9414 and open-telemetry/opentelemetry-collector-contrib/pull/31038.
Link to tracking Issue: Fixes #9208.