Skip to content

Commit 65b4919

Browse files
authored
Merge branch 'main' into deprecate_ErrNilNextConsumer
2 parents b67152e + 59b45a5 commit 65b4919

File tree

47 files changed

+229
-117
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+229
-117
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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. otlpreceiver)
7+
component: all
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: scope name for all generated Meter/Tracer funcs now includes full package name
11+
12+
# One or more tracking issues or pull requests related to the change
13+
issues: [9494]
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+
# Optional: The change log or logs in which this entry should be included.
21+
# e.g. '[user]' or '[user, api]'
22+
# Include 'user' if the change is relevant to end users.
23+
# Include 'api' if there is a change to a library API.
24+
# Default: '[user]'
25+
change_logs: []
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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: enhancement
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
7+
component: configopaque
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Mark module as stable
11+
12+
# One or more tracking issues or pull requests related to the change
13+
issues: [9167]
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+
# Optional: The change log or logs in which this entry should be included.
21+
# e.g. '[user]' or '[user, api]'
22+
# Include 'user' if the change is relevant to end users.
23+
# Include 'api' if there is a change to a library API.
24+
# Default: '[user]'
25+
change_logs: []
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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. otlpreceiver)
7+
component: configgrpc
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Remove deprecated `configgrpc.ServerConfig.ToListener`
11+
12+
# One or more tracking issues or pull requests related to the change
13+
issues: [9481]
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+
# Optional: The change log or logs in which this entry should be included.
21+
# e.g. '[user]' or '[user, api]'
22+
# Include 'user' if the change is relevant to end users.
23+
# Include 'api' if there is a change to a library API.
24+
# Default: '[user]'
25+
change_logs: [api]

.github/workflows/build-and-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ jobs:
207207
- name: Run Unit Tests With Coverage
208208
run: make gotest-with-cover
209209
- name: Upload coverage report
210-
uses: Wandalen/wretry.action@a163f62ae554a8f3cbe27b23db15b60c0ae2e93c # v1.3.0
210+
uses: Wandalen/wretry.action@62451a214c01d1b0136b4f87289d840b30d67b98 # v1.4.4
211211
with:
212212
action: codecov/codecov-action@v3
213213
with: |

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ jobs:
3030

3131
# Initializes the CodeQL tools for scanning.
3232
- name: Initialize CodeQL
33-
uses: github/codeql-action/init@b7bf0a3ed3ecfa44160715d7c442788f65f0f923 # v3.23.2
33+
uses: github/codeql-action/init@e675ced7a7522a761fc9c8eb26682c8b27c42b2b # v3.24.1
3434
with:
3535
languages: go
3636

3737
- name: Autobuild
38-
uses: github/codeql-action/autobuild@b7bf0a3ed3ecfa44160715d7c442788f65f0f923 # v3.23.2
38+
uses: github/codeql-action/autobuild@e675ced7a7522a761fc9c8eb26682c8b27c42b2b # v3.24.1
3939

4040
- name: Perform CodeQL Analysis
41-
uses: github/codeql-action/analyze@b7bf0a3ed3ecfa44160715d7c442788f65f0f923 # v3.23.2
41+
uses: github/codeql-action/analyze@e675ced7a7522a761fc9c8eb26682c8b27c42b2b # v3.24.1

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ jobs:
6464

6565
# Upload the results to GitHub's code scanning dashboard.
6666
- name: "Upload to code-scanning"
67-
uses: github/codeql-action/upload-sarif@2f93e4319b2f04a2efc38fa7f78bd681bc3f7b2f # v2.23.2
67+
uses: github/codeql-action/upload-sarif@1a077f8f6c71a45340c26ca0b877e00459e5f443 # v2.24.1
6868
with:
6969
sarif_file: results.sarif

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ Here is a list of community roles with current and previous members:
113113

114114
- [Andrzej Stencel](https://github.com/astencel-sumo), Sumo Logic
115115
- [Antoine Toulme](https://github.com/atoulme), Splunk
116+
- [Evan Bradley](https://github.com/evan-bradley), Dynatrace
116117
- [Tyler Helmuth](https://github.com/TylerHelmuth), Honeycomb
117118
- [Yang Song](https://github.com/songy23), Datadog
118119
- Actively seeking contributors to triage issues

cmd/mdatagen/internal/metadata/generated_metrics.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/mdatagen/internal/metadata/generated_status.go

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/mdatagen/loader.go

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -267,18 +267,18 @@ func loadMetadata(filePath string) (metadata, error) {
267267
return md, nil
268268
}
269269

270-
var componentTypes = map[string]func(string) string{
271-
"connector": func(in string) string { return strings.TrimSuffix(in, "connector") },
272-
"exporter": func(in string) string { return strings.TrimSuffix(in, "exporter") },
273-
"extension": func(in string) string { return strings.TrimSuffix(in, "extension") },
274-
"processor": func(in string) string { return strings.TrimSuffix(in, "processor") },
275-
"scraper": func(in string) string { return strings.TrimSuffix(in, "scraper") },
276-
"receiver": func(in string) string { return in },
270+
var componentTypes = []string{
271+
"connector",
272+
"exporter",
273+
"extension",
274+
"processor",
275+
"scraper",
276+
"receiver",
277277
}
278278

279279
func shortFolderName(filePath string) string {
280280
parentFolder := filepath.Base(filepath.Dir(filePath))
281-
for cType := range componentTypes {
281+
for _, cType := range componentTypes {
282282
if strings.HasSuffix(parentFolder, cType) {
283283
return strings.TrimSuffix(parentFolder, cType)
284284
}
@@ -287,20 +287,12 @@ func shortFolderName(filePath string) string {
287287
}
288288

289289
func scopeName(filePath string) string {
290-
sn := "otelcol"
290+
sn := "go.opentelemetry.io/collector"
291291
dirs := strings.Split(filepath.Dir(filePath), string(os.PathSeparator))
292292
for _, dir := range dirs {
293-
// skip directory names for component types
294-
if _, ok := componentTypes[dir]; ok {
295-
continue
296-
}
297-
// note here that the only component that receives a different
298-
// treatment is receivers. this is to prevent breaking backwards
299-
// compatibility for anyone that's using the generated metrics w/
300-
// scope names today.
301-
for cType, normalizeFunc := range componentTypes {
293+
for _, cType := range componentTypes {
302294
if strings.HasSuffix(dir, cType) {
303-
sn += "/" + normalizeFunc(dir)
295+
sn += "/" + dir
304296
}
305297
}
306298
}

0 commit comments

Comments
 (0)