You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-11-29 23:07:45 +02:00
feat(span): remove SetAttribute method (#1216)
* feat(span): remove SetAttribute method * Update CHANGELOG.md Revert markdown lint changes and unify the `Removed` section. Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
This commit is contained in:
@@ -101,13 +101,6 @@ func (s *span) SetAttributes(attributes ...label.KeyValue) {
|
||||
s.copyToCappedAttributes(attributes...)
|
||||
}
|
||||
|
||||
func (s *span) SetAttribute(k string, v interface{}) {
|
||||
attr := label.Any(k, v)
|
||||
if attr.Value.Type() != label.INVALID {
|
||||
s.SetAttributes(attr)
|
||||
}
|
||||
}
|
||||
|
||||
// End ends the span.
|
||||
//
|
||||
// The only SpanOption currently supported is WithTimestamp which will set the
|
||||
|
||||
Reference in New Issue
Block a user