1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-07-13 01:00:22 +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

@ -97,6 +97,10 @@ func (mockSpan) SetError(v bool) {
func (mockSpan) SetAttributes(attributes ...core.KeyValue) {
}
// SetAttribute does nothing.
func (mockSpan) SetAttribute(k string, v interface{}) {
}
// End does nothing.
func (mockSpan) End(options ...trace.EndOption) {
}