Skip to content

Commit

Permalink
[connector/count] update scope name for consistency (#34583)
Browse files Browse the repository at this point in the history
Update the scope name for telemetry produced by the countconnector from
otelcol/countconnector to

github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector

Part of
open-telemetry/opentelemetry-collector#9494

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
  • Loading branch information
codeboten committed Aug 9, 2024
1 parent 46a9f94 commit 5bdf066
Show file tree
Hide file tree
Showing 28 changed files with 117 additions and 90 deletions.
27 changes: 27 additions & 0 deletions .chloggen/codeboten_update-scope-countconnector.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Use this changelog template to create an entry for release notes.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: breaking

# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
component: countconnector

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: "Update the scope name for telemetry produced by the countconnector from `otelcol/countconnector` to `github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector"

# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
issues: [34583]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:

# If your change doesn't affect end users or the exported elements of any package,
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
# Optional: The change log or logs in which this entry should be included.
# e.g. '[user]' or '[user, api]'
# Include 'user' if the change is relevant to end users.
# Include 'api' if there is a change to a library API.
# Default: '[user]'
change_logs: []
2 changes: 1 addition & 1 deletion connector/countconnector/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlspanevent"
)

const scopeName = "otelcol/countconnector"
const scopeName = "github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector"

// count can count spans, span event, metrics, data points, or log records
// and emit the counts onto a metrics pipeline.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resourceMetrics:
timeUnixNano: "1678390948399018000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource:
attributes:
- key: resource.required
Expand Down Expand Up @@ -58,4 +58,4 @@ resourceMetrics:
timeUnixNano: "1678390948399021000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ resourceMetrics:
timeUnixNano: "1678390948398365000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource:
attributes:
- key: resource.required
Expand Down Expand Up @@ -88,7 +88,7 @@ resourceMetrics:
timeUnixNano: "1678390948398368000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource:
attributes:
- key: resource.required
Expand Down Expand Up @@ -130,7 +130,7 @@ resourceMetrics:
timeUnixNano: "1678390948398371000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource: {}
scopeMetrics:
- metrics:
Expand Down Expand Up @@ -168,4 +168,4 @@ resourceMetrics:
timeUnixNano: "1678390948398373000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ resourceMetrics:
timeUnixNano: "1678390948397879000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource:
attributes:
- key: resource.required
Expand Down Expand Up @@ -70,7 +70,7 @@ resourceMetrics:
timeUnixNano: "1678390948397882000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource:
attributes:
- key: resource.required
Expand Down Expand Up @@ -103,7 +103,7 @@ resourceMetrics:
timeUnixNano: "1678390948397884000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource: {}
scopeMetrics:
- metrics:
Expand Down Expand Up @@ -132,4 +132,4 @@ resourceMetrics:
timeUnixNano: "1678390948397886000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ resourceMetrics:
timeUnixNano: "1678390948395853000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource:
attributes:
- key: resource.required
Expand All @@ -38,7 +38,7 @@ resourceMetrics:
timeUnixNano: "1678390948395856000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource:
attributes:
- key: resource.required
Expand All @@ -55,7 +55,7 @@ resourceMetrics:
timeUnixNano: "1678390948395858000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource: {}
scopeMetrics:
- metrics:
Expand All @@ -68,4 +68,4 @@ resourceMetrics:
timeUnixNano: "1678390948395859000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
8 changes: 4 additions & 4 deletions connector/countconnector/testdata/logs/multiple_metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ resourceMetrics:
timeUnixNano: "1678390948396984000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource:
attributes:
- key: resource.required
Expand Down Expand Up @@ -54,7 +54,7 @@ resourceMetrics:
timeUnixNano: "1678390948396988000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource:
attributes:
- key: resource.required
Expand All @@ -71,7 +71,7 @@ resourceMetrics:
timeUnixNano: "1678390948396990000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource: {}
scopeMetrics:
- metrics:
Expand All @@ -84,4 +84,4 @@ resourceMetrics:
timeUnixNano: "1678390948396992000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
8 changes: 4 additions & 4 deletions connector/countconnector/testdata/logs/one_attribute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resourceMetrics:
timeUnixNano: "1678390948397419000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource:
attributes:
- key: resource.required
Expand Down Expand Up @@ -58,7 +58,7 @@ resourceMetrics:
timeUnixNano: "1678390948397423000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource:
attributes:
- key: resource.required
Expand All @@ -85,7 +85,7 @@ resourceMetrics:
timeUnixNano: "1678390948397425000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource: {}
scopeMetrics:
- metrics:
Expand All @@ -108,4 +108,4 @@ resourceMetrics:
timeUnixNano: "1678390948397427000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
4 changes: 2 additions & 2 deletions connector/countconnector/testdata/logs/one_condition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ resourceMetrics:
timeUnixNano: "1678390948395244000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource:
attributes:
- key: resource.required
Expand All @@ -38,4 +38,4 @@ resourceMetrics:
timeUnixNano: "1678390948395279000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
8 changes: 4 additions & 4 deletions connector/countconnector/testdata/logs/zero_conditions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ resourceMetrics:
timeUnixNano: "1678390948393725000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource:
attributes:
- key: resource.required
Expand All @@ -38,7 +38,7 @@ resourceMetrics:
timeUnixNano: "1678390948393759000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource:
attributes:
- key: resource.required
Expand All @@ -55,7 +55,7 @@ resourceMetrics:
timeUnixNano: "1678390948393760000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource: {}
scopeMetrics:
- metrics:
Expand All @@ -68,4 +68,4 @@ resourceMetrics:
timeUnixNano: "1678390948393761000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resourceMetrics:
timeUnixNano: "1678391923823222000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource:
attributes:
- key: resource.required
Expand Down Expand Up @@ -58,4 +58,4 @@ resourceMetrics:
timeUnixNano: "1678391923823233000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ resourceMetrics:
timeUnixNano: "1678391923822404000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource:
attributes:
- key: resource.required
Expand Down Expand Up @@ -88,7 +88,7 @@ resourceMetrics:
timeUnixNano: "1678391923822416000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource:
attributes:
- key: resource.required
Expand Down Expand Up @@ -130,7 +130,7 @@ resourceMetrics:
timeUnixNano: "1678391923822426000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource: {}
scopeMetrics:
- metrics:
Expand Down Expand Up @@ -168,4 +168,4 @@ resourceMetrics:
timeUnixNano: "1678391923822435000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ resourceMetrics:
timeUnixNano: "1678391923821179000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ resourceMetrics:
timeUnixNano: "1678391923821179000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ resourceMetrics:
timeUnixNano: "1678391923821783000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource:
attributes:
- key: resource.required
Expand Down Expand Up @@ -70,7 +70,7 @@ resourceMetrics:
timeUnixNano: "1678391923821792000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource:
attributes:
- key: resource.required
Expand Down Expand Up @@ -103,7 +103,7 @@ resourceMetrics:
timeUnixNano: "1678391923821800000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource: {}
scopeMetrics:
- metrics:
Expand Down Expand Up @@ -132,4 +132,4 @@ resourceMetrics:
timeUnixNano: "1678391923821807000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ resourceMetrics:
timeUnixNano: "1678391923819487000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource:
attributes:
- key: resource.required
Expand Down Expand Up @@ -54,7 +54,7 @@ resourceMetrics:
timeUnixNano: "1678391923819499000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource:
attributes:
- key: resource.required
Expand All @@ -79,7 +79,7 @@ resourceMetrics:
timeUnixNano: "1678391923819510000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource: {}
scopeMetrics:
- metrics:
Expand All @@ -100,7 +100,7 @@ resourceMetrics:
timeUnixNano: "1678391923819529000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
- resource:
attributes:
- key: resource.int
Expand All @@ -120,4 +120,4 @@ resourceMetrics:
timeUnixNano: "1678391923819487000"
isMonotonic: true
scope:
name: otelcol/countconnector
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
Loading

0 comments on commit 5bdf066

Please sign in to comment.