We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d99af90 commit e7f6825Copy full SHA for e7f6825
packages/opentelemetry-types/src/trace/span.ts
@@ -16,6 +16,7 @@
16
17
import { SpanContext } from './span_context';
18
import { Status } from './status';
19
+import { Attributes } from './attributes';
20
21
/**
22
* An interface that represents a span. A span represents a single operation
@@ -47,6 +48,13 @@ export interface Span {
47
48
*/
49
setAttribute(key: string, value: unknown): this;
50
51
+ /**
52
+ * Sets attributes to the span.
53
+ *
54
+ * @param attributes the attributes that will be added.
55
+ */
56
+ setAttributes(attributes: Attributes): this;
57
+
58
59
* Adds an event to the Span.
60
*
0 commit comments