Skip to content

Commit

Permalink
dockerstatsreceiver: migrate to newer semconv version (#35603)
Browse files Browse the repository at this point in the history
Description: The version of semconv is upgraded from v1.6.1 to v1.27.0

This is a trivial upgrade. The semconv attributes' value have been
compared using
[go-otel-semconv-comparator](https://github.com/narcis96/go-otel-semconv-comparator).
All attributes used by this component have the same value in both
versions.

Link to tracking Issue:
#22095

Testing: Tests passed
  • Loading branch information
narcis96 authored Oct 24, 2024
1 parent fd8dce8 commit 90da89e
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion receiver/dockerstatsreceiver/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"go.opentelemetry.io/collector/pdata/pmetric"
rcvr "go.opentelemetry.io/collector/receiver"
"go.opentelemetry.io/collector/receiver/receivertest"
conventions "go.opentelemetry.io/collector/semconv/v1.6.1"
conventions "go.opentelemetry.io/collector/semconv/v1.27.0"
"go.uber.org/zap"
"go.uber.org/zap/zaptest"
)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion receiver/dockerstatsreceiver/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ status:
emeritus: [rmfitzpatrick]
unsupported_platforms: [darwin, windows]

sem_conv_version: 1.6.1
sem_conv_version: 1.27.0

tests:
goleak:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ resourceMetrics:
- key: container.runtime
value:
stringValue: docker
schemaUrl: https://opentelemetry.io/schemas/1.6.1
schemaUrl: https://opentelemetry.io/schemas/1.27.0
scopeMetrics:
- metrics:
- description: Number of bytes transferred to/from the disk by the group and descendant groups.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ resourceMetrics:
- key: container.runtime
value:
stringValue: docker
schemaUrl: https://opentelemetry.io/schemas/1.6.1
schemaUrl: https://opentelemetry.io/schemas/1.27.0
scopeMetrics:
- metrics:
- description: Number of bytes transferred to/from the disk by the group and descendant groups.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ resourceMetrics:
- key: env-var-metric-label
value:
stringValue: env-var
schemaUrl: https://opentelemetry.io/schemas/1.6.1
schemaUrl: https://opentelemetry.io/schemas/1.27.0
scopeMetrics:
- metrics:
- description: Number of bytes transferred to/from the disk by the group and descendant groups.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ resourceMetrics:
- key: container.runtime
value:
stringValue: docker
schemaUrl: https://opentelemetry.io/schemas/1.6.1
schemaUrl: https://opentelemetry.io/schemas/1.27.0
scopeMetrics:
- metrics:
- description: Number of bytes transferred to/from the disk by the group and descendant groups.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resourceMetrics:
- key: env-var-metric-label-2
value:
stringValue: env-var-2
schemaUrl: https://opentelemetry.io/schemas/1.6.1
schemaUrl: https://opentelemetry.io/schemas/1.27.0
scopeMetrics:
- metrics:
- description: Number of bytes transferred to/from the disk by the group and descendant groups.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resourceMetrics:
- key: env-var-metric-label
value:
stringValue: env-var
schemaUrl: https://opentelemetry.io/schemas/1.6.1
schemaUrl: https://opentelemetry.io/schemas/1.27.0
scopeMetrics:
- metrics:
- description: Number of bytes transferred to/from the disk by the group and descendant groups.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ resourceMetrics:
- key: env-var-metric-label
value:
stringValue: env-var
schemaUrl: https://opentelemetry.io/schemas/1.6.1
schemaUrl: https://opentelemetry.io/schemas/1.27.0
scopeMetrics:
- metrics:
- description: Number of bytes transferred to/from the disk by the group and descendant groups.
Expand Down Expand Up @@ -807,7 +807,7 @@ resourceMetrics:
- key: env-var-metric-label
value:
stringValue: env-var2
schemaUrl: https://opentelemetry.io/schemas/1.6.1
schemaUrl: https://opentelemetry.io/schemas/1.27.0
scopeMetrics:
- metrics:
- description: Number of bytes transferred to/from the disk by the group and descendant groups.
Expand Down

0 comments on commit 90da89e

Please sign in to comment.