-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
receivers/oracledb conflates IDs with Types #31457
Labels
Comments
hughesjj
added
bug
Something isn't working
needs triage
New item requiring triage
labels
Feb 27, 2024
atoulme
added
receiver/oracledb
and removed
needs triage
New item requiring triage
labels
Feb 27, 2024
Pinging code owners for receiver/oracledb: @dmitryax @crobert-1 @atoulme. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
dmitryax
pushed a commit
that referenced
this issue
Feb 29, 2024
**Description:** Use metadata.Type for the scraper id to avoid invalid scraper IDs. **Link to tracking Issue:** Fixes #31457
This was referenced Mar 5, 2024
XinRanZhAWS
pushed a commit
to XinRanZhAWS/opentelemetry-collector-contrib
that referenced
this issue
Mar 13, 2024
…31504) **Description:** Use metadata.Type for the scraper id to avoid invalid scraper IDs. **Link to tracking Issue:** Fixes open-telemetry#31457
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Component(s)
receiver/oracledb
What happened?
Description
Note that
scraper.go
passes inid.String()
toscraperhelper.NewScraper(...)
. However,NewScraper
currently converts this string value to an ID of just the namecomponent.NewID(component.MustNewType(name)),
.The net result of this is that the cannonical string for IDs with names (
type
+/
+name
) is treated as a (nameless, type-only) ID inScraperHelper
This, combined with the new strict
Must
Blah methods, breaks discovery/observers, as the convention for observer/receiver_creator places `{end . We configure endpoints as part of the name, and such are disallowed by the new conventions.Steps to Reproduce
Expected Result
Actual Result
Collector version
v0.94
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
No response
Log output
The text was updated successfully, but these errors were encountered: