Skip to content

Commit 9a7f4f7

Browse files
Get Tracer operation should use an empty string if the specified name is null (#1654)
1 parent 7ccd144 commit 9a7f4f7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ release.
1414

1515
### Traces
1616

17+
- `Get Tracer` should use an empty string if the specified `name` is null. ([#1654](https://github.com/open-telemetry/opentelemetry-specification/pull/1654))
18+
1719
### Metrics
1820

1921
### Logs

specification/trace/api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ This API MUST accept the following parameters:
110110
or application.
111111
In case an invalid name (null or empty string) is specified, a working
112112
Tracer implementation MUST be returned as a fallback rather than returning
113-
null or throwing an exception, its `name` property SHOULD keep the original invalid value,
113+
null or throwing an exception, its `name` property SHOULD be set to an **empty** string,
114114
and a message reporting that the specified value is invalid SHOULD be logged.
115115
A library, implementing the OpenTelemetry API *may* also ignore this name and
116116
return a default instance for all calls, if it does not support "named"

0 commit comments

Comments
 (0)