Skip to content

Commit e8f5e4a

Browse files
author
Alex Boten
authored
Add schema definition for direction change (open-telemetry#2688)
This is a follow up to open-telemetry/opentelemetry-specification#2617 now that open-telemetry/opentelemetry-specification#2653 has been merged.
1 parent ecdd6bd commit e8f5e4a

File tree

2 files changed

+106
-1
lines changed

2 files changed

+106
-1
lines changed

internal/tools/schema_check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
set -e
88

9-
BUILD_TOOL_SCHEMAS_VERSION=0.12.1
9+
BUILD_TOOL_SCHEMAS_VERSION=0.13.0
1010

1111
# List of vesions that do not require or have a schema.
1212
declare -a skip_versions=("1.0.0" "1.0.1" "1.1.0" "1.2.0" "1.3.0" "1.6.0")

schemas/1.13.0

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
file_format: 1.1.0
2+
schema_url: https://opentelemetry.io/schemas/1.13.0
3+
versions:
4+
1.13.0:
5+
metrics:
6+
changes:
7+
# https://github.com/open-telemetry/opentelemetry-specification/pull/2617
8+
- split:
9+
apply_to_metric: system.paging.operations
10+
by_attribute: direction
11+
metrics_from_attributes:
12+
system.paging.operations.in: in
13+
system.paging.operations.out: out
14+
# https://github.com/open-telemetry/opentelemetry-specification/pull/2617
15+
- split:
16+
apply_to_metric: system.disk.io
17+
by_attribute: direction
18+
metrics_from_attributes:
19+
system.disk.io.read: read
20+
system.disk.io.write: write
21+
# https://github.com/open-telemetry/opentelemetry-specification/pull/2617
22+
- split:
23+
apply_to_metric: system.disk.operations
24+
by_attribute: direction
25+
metrics_from_attributes:
26+
system.disk.operations.read: read
27+
system.disk.operations.write: write
28+
# https://github.com/open-telemetry/opentelemetry-specification/pull/2617
29+
- split:
30+
apply_to_metric: system.disk.operation_time
31+
by_attribute: direction
32+
metrics_from_attributes:
33+
system.disk.operation_time.read: read
34+
system.disk.operation_time.write: write
35+
# https://github.com/open-telemetry/opentelemetry-specification/pull/2617
36+
- split:
37+
apply_to_metric: system.disk.merged
38+
by_attribute: direction
39+
metrics_from_attributes:
40+
system.disk.merged.read: read
41+
system.disk.merged.write: write
42+
# https://github.com/open-telemetry/opentelemetry-specification/pull/2617
43+
- split:
44+
apply_to_metric: system.network.dropped
45+
by_attribute: direction
46+
metrics_from_attributes:
47+
system.network.dropped.receive: receive
48+
system.network.dropped.transmit: transmit
49+
# https://github.com/open-telemetry/opentelemetry-specification/pull/2617
50+
- split:
51+
apply_to_metric: system.network.packets
52+
by_attribute: direction
53+
metrics_from_attributes:
54+
system.network.packets.receive: receive
55+
system.network.packets.transmit: transmit
56+
# https://github.com/open-telemetry/opentelemetry-specification/pull/2617
57+
- split:
58+
apply_to_metric: system.network.errors
59+
by_attribute: direction
60+
metrics_from_attributes:
61+
system.network.errors.receive: receive
62+
system.network.errors.transmit: transmit
63+
# https://github.com/open-telemetry/opentelemetry-specification/pull/2617
64+
- split:
65+
apply_to_metric: system.network.io
66+
by_attribute: direction
67+
metrics_from_attributes:
68+
system.network.io.receive: receive
69+
system.network.io.transmit: transmit
70+
# https://github.com/open-telemetry/opentelemetry-specification/pull/2617
71+
- split:
72+
apply_to_metric: process.disk.io
73+
by_attribute: direction
74+
metrics_from_attributes:
75+
process.disk.io.read: read
76+
process.disk.io.write: write
77+
# https://github.com/open-telemetry/opentelemetry-specification/pull/2617
78+
- split:
79+
apply_to_metric: process.network.io
80+
by_attribute: direction
81+
metrics_from_attributes:
82+
process.network.io.receive: receive
83+
process.network.io.transmit: transmit
84+
85+
1.12.0:
86+
spans:
87+
changes:
88+
- rename_attributes:
89+
attribute_map:
90+
net.peer.ip: net.sock.peer.addr
91+
net.host.ip: net.sock.host.addr
92+
1.11.0:
93+
1.10.0:
94+
1.9.0:
95+
1.8.0:
96+
spans:
97+
changes:
98+
- rename_attributes:
99+
attribute_map:
100+
db.cassandra.keyspace: db.name
101+
db.hbase.namespace: db.name
102+
1.7.0:
103+
1.6.1:
104+
1.5.0:
105+
1.4.0:

0 commit comments

Comments
 (0)