getLibraryVersionAttr returns the redis.client.library attribute
()
| 26 | |
| 27 | // getLibraryVersionAttr returns the redis.client.library attribute |
| 28 | func getLibraryVersionAttr() attribute.KeyValue { |
| 29 | return attribute.String(AttrRedisClientLibrary, fmt.Sprintf("%s:%s", libraryName, redis.Version())) |
| 30 | } |
| 31 | |
| 32 | // addServerPortIfNonDefault adds server.port attribute if port is not the default (6379) |
| 33 | func addServerPortIfNonDefault(attrs []attribute.KeyValue, serverPort string) []attribute.KeyValue { |
no test coverage detected