Skip to content

Commit c8b9376

Browse files
Merge branch 'main' into googlecloudmonitoringreceiver-phase1
2 parents 463bf71 + 5bdf066 commit c8b9376

28 files changed

+117
-90
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: breaking
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
7+
component: countconnector
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: "Update the scope name for telemetry produced by the countconnector from `otelcol/countconnector` to `github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector"
11+
12+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
13+
issues: [34583]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext:
19+
20+
# If your change doesn't affect end users or the exported elements of any package,
21+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
22+
# Optional: The change log or logs in which this entry should be included.
23+
# e.g. '[user]' or '[user, api]'
24+
# Include 'user' if the change is relevant to end users.
25+
# Include 'api' if there is a change to a library API.
26+
# Default: '[user]'
27+
change_logs: []

connector/countconnector/connector.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/contexts/ottlspanevent"
2323
)
2424

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

2727
// count can count spans, span event, metrics, data points, or log records
2828
// and emit the counts onto a metrics pipeline.

connector/countconnector/testdata/logs/condition_and_attribute.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ resourceMetrics:
2828
timeUnixNano: "1678390948399018000"
2929
isMonotonic: true
3030
scope:
31-
name: otelcol/countconnector
31+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
3232
- resource:
3333
attributes:
3434
- key: resource.required
@@ -58,4 +58,4 @@ resourceMetrics:
5858
timeUnixNano: "1678390948399021000"
5959
isMonotonic: true
6060
scope:
61-
name: otelcol/countconnector
61+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector

connector/countconnector/testdata/logs/default_attribute_value.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ resourceMetrics:
4343
timeUnixNano: "1678390948398365000"
4444
isMonotonic: true
4545
scope:
46-
name: otelcol/countconnector
46+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
4747
- resource:
4848
attributes:
4949
- key: resource.required
@@ -88,7 +88,7 @@ resourceMetrics:
8888
timeUnixNano: "1678390948398368000"
8989
isMonotonic: true
9090
scope:
91-
name: otelcol/countconnector
91+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
9292
- resource:
9393
attributes:
9494
- key: resource.required
@@ -130,7 +130,7 @@ resourceMetrics:
130130
timeUnixNano: "1678390948398371000"
131131
isMonotonic: true
132132
scope:
133-
name: otelcol/countconnector
133+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
134134
- resource: {}
135135
scopeMetrics:
136136
- metrics:
@@ -168,4 +168,4 @@ resourceMetrics:
168168
timeUnixNano: "1678390948398373000"
169169
isMonotonic: true
170170
scope:
171-
name: otelcol/countconnector
171+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector

connector/countconnector/testdata/logs/multiple_attributes.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ resourceMetrics:
3434
timeUnixNano: "1678390948397879000"
3535
isMonotonic: true
3636
scope:
37-
name: otelcol/countconnector
37+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
3838
- resource:
3939
attributes:
4040
- key: resource.required
@@ -70,7 +70,7 @@ resourceMetrics:
7070
timeUnixNano: "1678390948397882000"
7171
isMonotonic: true
7272
scope:
73-
name: otelcol/countconnector
73+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
7474
- resource:
7575
attributes:
7676
- key: resource.required
@@ -103,7 +103,7 @@ resourceMetrics:
103103
timeUnixNano: "1678390948397884000"
104104
isMonotonic: true
105105
scope:
106-
name: otelcol/countconnector
106+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
107107
- resource: {}
108108
scopeMetrics:
109109
- metrics:
@@ -132,4 +132,4 @@ resourceMetrics:
132132
timeUnixNano: "1678390948397886000"
133133
isMonotonic: true
134134
scope:
135-
name: otelcol/countconnector
135+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector

connector/countconnector/testdata/logs/multiple_conditions.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ resourceMetrics:
1818
timeUnixNano: "1678390948395853000"
1919
isMonotonic: true
2020
scope:
21-
name: otelcol/countconnector
21+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
2222
- resource:
2323
attributes:
2424
- key: resource.required
@@ -38,7 +38,7 @@ resourceMetrics:
3838
timeUnixNano: "1678390948395856000"
3939
isMonotonic: true
4040
scope:
41-
name: otelcol/countconnector
41+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
4242
- resource:
4343
attributes:
4444
- key: resource.required
@@ -55,7 +55,7 @@ resourceMetrics:
5555
timeUnixNano: "1678390948395858000"
5656
isMonotonic: true
5757
scope:
58-
name: otelcol/countconnector
58+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
5959
- resource: {}
6060
scopeMetrics:
6161
- metrics:
@@ -68,4 +68,4 @@ resourceMetrics:
6868
timeUnixNano: "1678390948395859000"
6969
isMonotonic: true
7070
scope:
71-
name: otelcol/countconnector
71+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector

connector/countconnector/testdata/logs/multiple_metrics.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ resourceMetrics:
2626
timeUnixNano: "1678390948396984000"
2727
isMonotonic: true
2828
scope:
29-
name: otelcol/countconnector
29+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
3030
- resource:
3131
attributes:
3232
- key: resource.required
@@ -54,7 +54,7 @@ resourceMetrics:
5454
timeUnixNano: "1678390948396988000"
5555
isMonotonic: true
5656
scope:
57-
name: otelcol/countconnector
57+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
5858
- resource:
5959
attributes:
6060
- key: resource.required
@@ -71,7 +71,7 @@ resourceMetrics:
7171
timeUnixNano: "1678390948396990000"
7272
isMonotonic: true
7373
scope:
74-
name: otelcol/countconnector
74+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
7575
- resource: {}
7676
scopeMetrics:
7777
- metrics:
@@ -84,4 +84,4 @@ resourceMetrics:
8484
timeUnixNano: "1678390948396992000"
8585
isMonotonic: true
8686
scope:
87-
name: otelcol/countconnector
87+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector

connector/countconnector/testdata/logs/one_attribute.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ resourceMetrics:
2828
timeUnixNano: "1678390948397419000"
2929
isMonotonic: true
3030
scope:
31-
name: otelcol/countconnector
31+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
3232
- resource:
3333
attributes:
3434
- key: resource.required
@@ -58,7 +58,7 @@ resourceMetrics:
5858
timeUnixNano: "1678390948397423000"
5959
isMonotonic: true
6060
scope:
61-
name: otelcol/countconnector
61+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
6262
- resource:
6363
attributes:
6464
- key: resource.required
@@ -85,7 +85,7 @@ resourceMetrics:
8585
timeUnixNano: "1678390948397425000"
8686
isMonotonic: true
8787
scope:
88-
name: otelcol/countconnector
88+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
8989
- resource: {}
9090
scopeMetrics:
9191
- metrics:
@@ -108,4 +108,4 @@ resourceMetrics:
108108
timeUnixNano: "1678390948397427000"
109109
isMonotonic: true
110110
scope:
111-
name: otelcol/countconnector
111+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector

connector/countconnector/testdata/logs/one_condition.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ resourceMetrics:
1818
timeUnixNano: "1678390948395244000"
1919
isMonotonic: true
2020
scope:
21-
name: otelcol/countconnector
21+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
2222
- resource:
2323
attributes:
2424
- key: resource.required
@@ -38,4 +38,4 @@ resourceMetrics:
3838
timeUnixNano: "1678390948395279000"
3939
isMonotonic: true
4040
scope:
41-
name: otelcol/countconnector
41+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector

connector/countconnector/testdata/logs/zero_conditions.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ resourceMetrics:
1818
timeUnixNano: "1678390948393725000"
1919
isMonotonic: true
2020
scope:
21-
name: otelcol/countconnector
21+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
2222
- resource:
2323
attributes:
2424
- key: resource.required
@@ -38,7 +38,7 @@ resourceMetrics:
3838
timeUnixNano: "1678390948393759000"
3939
isMonotonic: true
4040
scope:
41-
name: otelcol/countconnector
41+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
4242
- resource:
4343
attributes:
4444
- key: resource.required
@@ -55,7 +55,7 @@ resourceMetrics:
5555
timeUnixNano: "1678390948393760000"
5656
isMonotonic: true
5757
scope:
58-
name: otelcol/countconnector
58+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
5959
- resource: {}
6060
scopeMetrics:
6161
- metrics:
@@ -68,4 +68,4 @@ resourceMetrics:
6868
timeUnixNano: "1678390948393761000"
6969
isMonotonic: true
7070
scope:
71-
name: otelcol/countconnector
71+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector

connector/countconnector/testdata/metrics/condition_and_attribute.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ resourceMetrics:
2828
timeUnixNano: "1678391923823222000"
2929
isMonotonic: true
3030
scope:
31-
name: otelcol/countconnector
31+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
3232
- resource:
3333
attributes:
3434
- key: resource.required
@@ -58,4 +58,4 @@ resourceMetrics:
5858
timeUnixNano: "1678391923823233000"
5959
isMonotonic: true
6060
scope:
61-
name: otelcol/countconnector
61+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector

connector/countconnector/testdata/metrics/default_attribute_value.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ resourceMetrics:
4343
timeUnixNano: "1678391923822404000"
4444
isMonotonic: true
4545
scope:
46-
name: otelcol/countconnector
46+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
4747
- resource:
4848
attributes:
4949
- key: resource.required
@@ -88,7 +88,7 @@ resourceMetrics:
8888
timeUnixNano: "1678391923822416000"
8989
isMonotonic: true
9090
scope:
91-
name: otelcol/countconnector
91+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
9292
- resource:
9393
attributes:
9494
- key: resource.required
@@ -130,7 +130,7 @@ resourceMetrics:
130130
timeUnixNano: "1678391923822426000"
131131
isMonotonic: true
132132
scope:
133-
name: otelcol/countconnector
133+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
134134
- resource: {}
135135
scopeMetrics:
136136
- metrics:
@@ -168,4 +168,4 @@ resourceMetrics:
168168
timeUnixNano: "1678391923822435000"
169169
isMonotonic: true
170170
scope:
171-
name: otelcol/countconnector
171+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector

connector/countconnector/testdata/metrics/default_int_attribute_value.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ resourceMetrics:
4949
timeUnixNano: "1678391923821179000"
5050
isMonotonic: true
5151
scope:
52-
name: otelcol/countconnector
52+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector

connector/countconnector/testdata/metrics/int_attribute_value.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ resourceMetrics:
2828
timeUnixNano: "1678391923821179000"
2929
isMonotonic: true
3030
scope:
31-
name: otelcol/countconnector
31+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector

connector/countconnector/testdata/metrics/multiple_attributes.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ resourceMetrics:
3434
timeUnixNano: "1678391923821783000"
3535
isMonotonic: true
3636
scope:
37-
name: otelcol/countconnector
37+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
3838
- resource:
3939
attributes:
4040
- key: resource.required
@@ -70,7 +70,7 @@ resourceMetrics:
7070
timeUnixNano: "1678391923821792000"
7171
isMonotonic: true
7272
scope:
73-
name: otelcol/countconnector
73+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
7474
- resource:
7575
attributes:
7676
- key: resource.required
@@ -103,7 +103,7 @@ resourceMetrics:
103103
timeUnixNano: "1678391923821800000"
104104
isMonotonic: true
105105
scope:
106-
name: otelcol/countconnector
106+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
107107
- resource: {}
108108
scopeMetrics:
109109
- metrics:
@@ -132,4 +132,4 @@ resourceMetrics:
132132
timeUnixNano: "1678391923821807000"
133133
isMonotonic: true
134134
scope:
135-
name: otelcol/countconnector
135+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector

connector/countconnector/testdata/metrics/multiple_conditions.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ resourceMetrics:
2626
timeUnixNano: "1678391923819487000"
2727
isMonotonic: true
2828
scope:
29-
name: otelcol/countconnector
29+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
3030
- resource:
3131
attributes:
3232
- key: resource.required
@@ -54,7 +54,7 @@ resourceMetrics:
5454
timeUnixNano: "1678391923819499000"
5555
isMonotonic: true
5656
scope:
57-
name: otelcol/countconnector
57+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
5858
- resource:
5959
attributes:
6060
- key: resource.required
@@ -79,7 +79,7 @@ resourceMetrics:
7979
timeUnixNano: "1678391923819510000"
8080
isMonotonic: true
8181
scope:
82-
name: otelcol/countconnector
82+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
8383
- resource: {}
8484
scopeMetrics:
8585
- metrics:
@@ -100,7 +100,7 @@ resourceMetrics:
100100
timeUnixNano: "1678391923819529000"
101101
isMonotonic: true
102102
scope:
103-
name: otelcol/countconnector
103+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector
104104
- resource:
105105
attributes:
106106
- key: resource.int
@@ -120,4 +120,4 @@ resourceMetrics:
120120
timeUnixNano: "1678391923819487000"
121121
isMonotonic: true
122122
scope:
123-
name: otelcol/countconnector
123+
name: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector

0 commit comments

Comments
 (0)