mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-23 17:20:24 +08:00
e20ccdd011
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
11 lines
284 B
Go
11 lines
284 B
Go
package trace
|
|
|
|
import "go.opentelemetry.io/otel/attribute"
|
|
|
|
var attrResources = make([]attribute.KeyValue, 0)
|
|
|
|
// AddResources add more resources in addition to configured trace name.
|
|
func AddResources(attrs ...attribute.KeyValue) {
|
|
attrResources = append(attrResources, attrs...)
|
|
}
|