Commit d067071
fix: Update max instrument length from 63 to 255 (#1883)
* fix: Update max instrument length from 63 to 255
The current specification states that the max instrument length is 255
chars:
https://opentelemetry.io/docs/specs/otel/metrics/api/#instrument-name-syntax
This commit updates the Ruby sdk to reflect this!
* Update metrics_api/lib/opentelemetry/metrics/meter.rb
Co-authored-by: Kayla Reopelle <[email protected]>
* Update metrics_sdk/lib/opentelemetry/sdk/metrics/meter.rb
Co-authored-by: Kayla Reopelle <[email protected]>
* Update metrics_sdk/test/opentelemetry/sdk/metrics/meter_test.rb
Co-authored-by: Kayla Reopelle <[email protected]>
* Include forward slash in instrument name test
* Use percent literal for regexes with forward slash
* Remove redundant escape inside regex literal
---------
Co-authored-by: Kayla Reopelle <[email protected]>1 parent 6168e9c commit d067071
File tree
3 files changed
+6
-6
lines changed- metrics_api/lib/opentelemetry/metrics
- metrics_sdk
- lib/opentelemetry/sdk/metrics
- test/opentelemetry/sdk/metrics
3 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | | - | |
| 188 | + | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | | - | |
| 194 | + | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| |||
0 commit comments