1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-07-15 01:04:25 +02:00

add SetAttribute(string,interface{}) (#674)

This commit is contained in:
Liz Fong-Jones
2020-04-28 17:24:47 -04:00
committed by GitHub
parent 3809f7bba3
commit ee30252752
7 changed files with 29 additions and 0 deletions

View File

@ -121,6 +121,9 @@ type Span interface {
// Set span attributes
SetAttributes(...core.KeyValue)
// Set singular span attribute, with type inference.
SetAttribute(string, interface{})
}
// StartOption applies changes to StartConfig that sets options at span start time.