Skip to content

Commit

Permalink
Add method to allow setting multiple attributes at once to … (open-te…
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuraag Agrawal authored and ThomsonTan committed Mar 30, 2021
1 parent 87b68b4 commit ab8cb35
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions specification/trace/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,11 @@ The Span interface MUST provide:
as arguments. This MAY be called `SetAttribute`. To avoid extra allocations some
implementations may offer a separate API for each of the possible value types.

The Span interface MAY provide:

- An API to set multiple `Attributes` at once, where the `Attributes` are passed in a
single method call.

Setting an attribute with the same key as an existing attribute SHOULD overwrite
the existing attribute's value.

Expand Down

0 comments on commit ab8cb35

Please sign in to comment.