diff --git a/packages/opentelemetry-types/src/trace/tracer.ts b/packages/opentelemetry-types/src/trace/tracer.ts index bec95f23604..73c76aa55d0 100644 --- a/packages/opentelemetry-types/src/trace/tracer.ts +++ b/packages/opentelemetry-types/src/trace/tracer.ts @@ -14,8 +14,10 @@ * limitations under the License. */ +import { HttpTextFormat } from '../context/propagation/HttpTextFormat'; import { Span } from './span'; import { SpanOptions } from './SpanOptions'; +import { BinaryFormat } from '../context/propagation/BinaryFormat'; /** * Tracer provides an interface for creating {@link Span}s and propagating @@ -76,7 +78,7 @@ export interface Tracer { * * @todo: Change return type once BinaryFormat is available */ - getBinaryFormat(): unknown; + getBinaryFormat(): BinaryFormat; /** * Returns the {@link HttpTextFormat} interface which can inject/extract @@ -85,8 +87,6 @@ export interface Tracer { * If no tracer implementation is provided, this defaults to the W3C Trace * Context HTTP text format ({@link HttpTraceContext}). For more details see * W3C Trace Context. - * - * @todo: Change return type once HttpTextFormat is available */ - getHttpTextFormat(): unknown; + getHttpTextFormat(): HttpTextFormat; }