Open cwegener opened 8 months ago
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself.
Thanks for filing @cwegener, I agree this is a valid issue.
As far as solution, we'd want to set the scope name here: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/2047ee9c1146241b2e7770a077cd1ed13469eb64/internal/sqlquery/scraper.go#L86
A lot of internal logic of the sqlquery receiver was moved to a separate package so that multiple receivers can use it. Since multiple receivers may be calling the Scrape
method, their scope name should be passed to the internal package as an internal config variable, without user configuration. This would allow users to know which receiver the metric is coming from, instead of a single default value.
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers
. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself.
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers
. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself.
Component(s)
receiver/sqlquery
What happened?
Description
The Instrumentation Scope is not being set to the expected value (i.e.
otelcol/sqlqueryreceiver
) in the Metric streams that are generated from thesqlqueryreceiver
.Steps to Reproduce
Expected Result
The
Instrumentation Scope
should showotelcol/sqlqueryreceiver
Actual Result
The
Instrumentation Scope
is emptyCollector version
v0.93.0
Environment information
Environment
OS: Ubuntu 22.04,
OpenTelemetry Collector configuration
Log output
Additional context
No response