mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 01:30:25 +08:00
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...)
|
||
|
}
|