From 9087fe39058e1b3453d6d844bca30f3bf49c6835 Mon Sep 17 00:00:00 2001 From: Carlos Alberto Cortez Date: Wed, 28 Apr 2021 16:31:15 +0200 Subject: [PATCH] Get Tracer operation should use an empty string if the specified `name` is null (#1654) --- CHANGELOG.md | 2 ++ specification/trace/api.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa2059a6381..186e121f67f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/specification/trace/api.md b/specification/trace/api.md index a5750d72c41..942f808956f 100644 --- a/specification/trace/api.md +++ b/specification/trace/api.md @@ -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"