Compare commits

..

4 Commits

Author SHA1 Message Date
xuu
1d987d238d
Merge branch 'add-lsm'
Some checks failed
Go Bump / bump (push) Successful in 48s
Go Test / build (push) Failing after 2m14s
2024-06-10 21:43:00 -06:00
xuu
3be012e780
chore: save sst code
All checks were successful
Go Test / build (pull_request) Successful in 1m47s
2024-01-15 11:26:54 -07:00
xuu
59eaef2ae3
chore(lsm): add initial range search 2023-10-28 19:40:29 -06:00
xuu
ddd21b39a6
chore: add lsm/sstable 2023-10-28 09:00:49 -06:00

View File

@ -38,9 +38,11 @@ func initMetrics(ctx context.Context, name string) (context.Context, func() erro
goversion := ""
pkg := ""
host := ""
version := "0.0.1"
if info, ok := debug.ReadBuildInfo(); ok {
goversion = info.GoVersion
pkg = info.Path
version = info.Main.Version
}
if h, err := os.Hostname(); err == nil {
host = h
@ -69,7 +71,7 @@ func initMetrics(ctx context.Context, name string) (context.Context, func() erro
)
meter := provider.Meter(name,
api.WithInstrumentationVersion("0.0.1"),
api.WithInstrumentationVersion(version),
api.WithInstrumentationAttributes(
attribute.String("app", name),
attribute.String("host", host),