Skip to content

Commit

Permalink
Span: Add setAttributes operation (open-telemetry#44)
Browse files Browse the repository at this point in the history
* Span: Add setAttributes operation

* Update packages/opentelemetry-types/src/trace/span.ts

Co-Authored-By: Roch Devost <roch.devost@gmail.com>
  • Loading branch information
mayurkale22 and rochdev committed Jun 20, 2019
1 parent d99af90 commit e7f6825
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/opentelemetry-types/src/trace/span.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import { SpanContext } from './span_context';
import { Status } from './status';
import { Attributes } from './attributes';

/**
* An interface that represents a span. A span represents a single operation
Expand Down Expand Up @@ -47,6 +48,13 @@ export interface Span {
*/
setAttribute(key: string, value: unknown): this;

/**
* Sets attributes to the span.
*
* @param attributes the attributes that will be added.
*/
setAttributes(attributes: Attributes): this;

/**
* Adds an event to the Span.
*
Expand Down

0 comments on commit e7f6825

Please sign in to comment.