Compare commits

..

No commits in common. "1d987d238dd8287dddddb9594d3958148227080c" and "58ae783bf05b9841fe664c3f4bf2b173cd836da7" have entirely different histories.

View File

@ -38,11 +38,9 @@ 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
@ -71,7 +69,7 @@ func initMetrics(ctx context.Context, name string) (context.Context, func() erro
)
meter := provider.Meter(name,
api.WithInstrumentationVersion(version),
api.WithInstrumentationVersion("0.0.1"),
api.WithInstrumentationAttributes(
attribute.String("app", name),
attribute.String("host", host),