Skip to content

Commit 8dd89ec

Browse files
authored
update semconv to v1.38.0 (open-telemetry#14305)
Signed-off-by: alex boten <[email protected]>
1 parent 1839ba7 commit 8dd89ec

File tree

13 files changed

+41
-16
lines changed

13 files changed

+41
-16
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: enhancement
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. receiver/otlp)
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: Update semconv import to 1.38.0
11+
12+
# One or more tracking issues or pull requests related to the change
13+
issues: [14305]
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: []

.golangci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ linters:
8484
- "!cmd/mdatagen/**" # Exclude mdatagen
8585
deny:
8686
- pkg: go.opentelemetry.io/otel/semconv
87-
desc: Use go.opentelemetry.io/otel/semconv/v1.37.0 instead. If a newer semconv version has been released, update the depguard rule.
87+
desc: Use go.opentelemetry.io/otel/semconv/v1.38.0 instead. If a newer semconv version has been released, update the depguard rule.
8888
allow:
89-
- go.opentelemetry.io/otel/semconv/v1.37.0
89+
- go.opentelemetry.io/otel/semconv/v1.38.0
9090
# Add a different guard rule so that we can ignore tests.
9191
ignore-in-test:
9292
# Allow in tests for testing pdata or other receivers/exporters that expect OTLP.

cmd/mdatagen/internal/loader_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func TestLoadMetadata(t *testing.T) {
4747
GithubProject: "open-telemetry/opentelemetry-collector",
4848
GeneratedPackageName: "metadata",
4949
Type: "sample",
50-
SemConvVersion: "1.37.0",
50+
SemConvVersion: "1.38.0",
5151
PackageName: "go.opentelemetry.io/collector/cmd/mdatagen/internal/samplereceiver",
5252
Status: &Status{
5353
DisableCodeCov: true,
@@ -265,7 +265,7 @@ func TestLoadMetadata(t *testing.T) {
265265
Signal: Signal{
266266
Enabled: true,
267267
Stability: Stability{Level: component.StabilityLevelBeta},
268-
SemanticConvention: &SemanticConvention{SemanticConventionRef: "https://github.com/open-telemetry/semantic-conventions/blob/v1.37.0/docs/system/system-metrics.md#metric-systemcputime"},
268+
SemanticConvention: &SemanticConvention{SemanticConventionRef: "https://github.com/open-telemetry/semantic-conventions/blob/v1.38.0/docs/system/system-metrics.md#metric-systemcputime"},
269269
Description: "Monotonic cumulative sum int metric enabled by default.",
270270
ExtendedDocumentation: "The metric will be become optional soon.",
271271
},

cmd/mdatagen/internal/samplereceiver/documentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ The metric will be become optional soon.
7171
7272
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | Stability | Semantic Convention |
7373
| ---- | ----------- | ---------- | ----------------------- | --------- | --------- | ------------------- |
74-
| s | Sum | Int | Cumulative | true | Beta | [system.cpu.time](https://github.com/open-telemetry/semantic-conventions/blob/v1.37.0/docs/system/system-metrics.md#metric-systemcputime) |
74+
| s | Sum | Int | Cumulative | true | Beta | [system.cpu.time](https://github.com/open-telemetry/semantic-conventions/blob/v1.38.0/docs/system/system-metrics.md#metric-systemcputime) |
7575
7676
## Optional Metrics
7777

cmd/mdatagen/internal/samplereceiver/internal/metadata/generated_logs.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/samplereceiver/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/samplereceiver/metadata.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ type: sample
44
scope_name: go.opentelemetry.io/collector/internal/receiver/samplereceiver
55
github_project: open-telemetry/opentelemetry-collector
66

7-
sem_conv_version: 1.37.0
7+
sem_conv_version: 1.38.0
88

99
status:
1010
disable_codecov_badge: true
@@ -246,7 +246,7 @@ metrics:
246246
monotonic: true
247247
aggregation_temporality: cumulative
248248
semantic_convention:
249-
ref: https://github.com/open-telemetry/semantic-conventions/blob/v1.37.0/docs/system/system-metrics.md#metric-systemcputime
249+
ref: https://github.com/open-telemetry/semantic-conventions/blob/v1.38.0/docs/system/system-metrics.md#metric-systemcputime
250250

251251
telemetry:
252252
metrics:

cmd/mdatagen/internal/samplescraper/documentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The metric will be become optional soon.
6868
6969
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | Stability | Semantic Convention |
7070
| ---- | ----------- | ---------- | ----------------------- | --------- | --------- | ------------------- |
71-
| s | Sum | Int | Cumulative | true | Beta | [system.cpu.time](https://github.com/open-telemetry/semantic-conventions/blob/v1.37.0/docs/system/system-metrics.md#metric-systemcputime) |
71+
| s | Sum | Int | Cumulative | true | Beta | [system.cpu.time](https://github.com/open-telemetry/semantic-conventions/blob/v1.38.0/docs/system/system-metrics.md#metric-systemcputime) |
7272
7373
## Optional Metrics
7474

cmd/mdatagen/internal/samplescraper/internal/metadata/generated_logs.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/samplescraper/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.

0 commit comments

Comments
 (0)