Skip to content
Closed
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ release.

### Metrics

- Expand the metric instrument name allowed character set to include `:`,
`\`, `(`, `)`, `%`, `*`, `#`, and space (with space restricted to
non-leading, non-trailing positions), and drop the requirement that the
first character be alphabetic. This enables Windows performance counter
style names (e.g. `\Processor(_Total)\% Processor Time`,
`\.NET CLR Memory(*)\# Bytes in all Heaps`). ASCII, case-insensitivity, and
the 255-character maximum are unchanged.
([#4371](https://github.com/open-telemetry/opentelemetry-specification/issues/4371),
[#4736](https://github.com/open-telemetry/opentelemetry-specification/issues/4736))
- Add in-development `Bind` API to synchronous instruments.
([#5050](https://github.com/open-telemetry/opentelemetry-specification/pull/5050))
- Stabilize sections of Prometheus Metrics Exporter.
Expand Down
13 changes: 7 additions & 6 deletions specification/metrics/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,17 +205,18 @@ The instrument name syntax is defined below using the [Augmented Backus-Naur
Form](https://datatracker.ietf.org/doc/html/rfc5234):

```abnf
instrument-name = ALPHA 0*254 ("_" / "." / "-" / "/" / ALPHA / DIGIT)
instrument-name = NAME-CHAR [0*253(NAME-CHAR / " ") NAME-CHAR]

ALPHA = %x41-5A / %x61-7A; A-Z / a-z
DIGIT = %x30-39 ; 0-9
NAME-CHAR = ALPHA / DIGIT / "_" / "." / "-" / "/" / ":" / "\" / "(" / ")" / "%" / "*" / "#"
ALPHA = %x41-5A / %x61-7A; A-Z / a-z
DIGIT = %x30-39 ; 0-9
```

* They are not null or empty strings.
* They are case-insensitive, ASCII strings.
* The first character must be an alphabetic character.
* Subsequent characters must belong to the alphanumeric characters, '_', '.', '-',
and '/'.
* Characters must be ASCII alphanumeric or one of: `_`, `.`, `-`, `/`, `:`,
`\`, `(`, `)`, `%`, `*`, `#`, or space. The first and last characters MUST
NOT be a space.
* They can have a maximum length of 255 characters.

#### Instrument unit
Expand Down
Loading