Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit dd7f8b0

Browse files
tcolgatekjin
authored andcommitted
fix: Span.addAttribute should accept string|number|bool (#76)
1 parent 4067e92 commit dd7f8b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/opencensus-core/src/trace/model

packages/opencensus-core/src/trace/model/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export interface Span {
161161
* @param key Describes the value added.
162162
* @param value The result of an operation.
163163
*/
164-
addAttribute(key: string, value: string): void;
164+
addAttribute(key: string, value: string|number|boolean): void;
165165

166166
/**
167167
* Adds an annotation to the span.

0 commit comments

Comments
 (0)