Skip to content

Commit

Permalink
Get Tracer operation should use an empty string if the specified `nam…
Browse files Browse the repository at this point in the history
…e` is null (open-telemetry#1654)
  • Loading branch information
carlosalberto authored Apr 28, 2021
1 parent 43c9950 commit 9087fe3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ release.

### Traces

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

### Metrics

### Logs
Expand Down
2 changes: 1 addition & 1 deletion specification/trace/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ This API MUST accept the following parameters:
or application.
In case an invalid name (null or empty string) is specified, a working
Tracer implementation MUST be returned as a fallback rather than returning
null or throwing an exception, its `name` property SHOULD keep the original invalid value,
null or throwing an exception, its `name` property SHOULD be set to an **empty** string,
and a message reporting that the specified value is invalid SHOULD be logged.
A library, implementing the OpenTelemetry API *may* also ignore this name and
return a default instance for all calls, if it does not support "named"
Expand Down

0 comments on commit 9087fe3

Please sign in to comment.