Upgrade, fix attrs
All checks were successful
Build and Publish / release (push) Successful in 3m46s
All checks were successful
Build and Publish / release (push) Successful in 3m46s
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user