Upgrade, fix attrs
All checks were successful
Build and Publish / release (push) Successful in 3m46s

This commit is contained in:
2025-01-28 15:47:58 -05:00
parent 59433cc77f
commit 2c29493229
3 changed files with 5 additions and 1 deletions

View File

@ -114,6 +114,8 @@ func MustInitMetrics(appCtx context.Context) *WeatherMetrics {
func (wm *WeatherMetrics) Update(u *WeatherUpdate) {
attributes := []attribute.KeyValue{
semconv.ServiceVersion(wm.cfg.Version),
semconv.ServiceName(wm.cfg.Name),
semconv.DeploymentEnvironment(wm.cfg.Environment),
}
if u.StationType != nil {
attributes = append(attributes,