Skip to content

Commit

Permalink
[otel] fix semconv version
Browse files Browse the repository at this point in the history
To fix following issue on nildev:
```
ERROR=failed to initialize metric provider: conflicting Schema URL: https://opentelemetry.io/schemas/1.26.0 and https://opentelemetry.io/schemas/1.27.0
    JSON={"level":"error","component":"nil","error":"failed to initialize metric provider: conflicting Schema URL: https://opentelemetry.io/schemas/1.26.0 and https://opentelemetry.io/schemas/1.27.0","caller":"github.com/NilFoundation/nil/nil/services/nilservice/service.go:351","time":"2025-03-04T16:59:45Z","message":"Failed to initialize telemetry"}wq
```
  • Loading branch information
olegrok committed Mar 4, 2025
1 parent 6dfe558 commit c6416ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nil/internal/telemetry/internal/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package internal

import (
"go.opentelemetry.io/otel/sdk/resource"
semconv "go.opentelemetry.io/otel/semconv/v1.27.0"
semconv "go.opentelemetry.io/otel/semconv/v1.26.0" // Be sure otelcol support it before update
)

func NewResource(config *Config) (*resource.Resource, error) {
Expand Down
2 changes: 1 addition & 1 deletion nix/nil.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ buildGo124Module rec {
];

# to obtain run `nix build` with vendorHash = "";
vendorHash = "sha256-Cqkos2JACh9qV+cFSUanOQ/JHzbftlvUfHXoRZ2VbQQ=";
vendorHash = "sha256-b3yEYGngHgencOGoptOD41aBlK2OdVo4Z7LtYCkutd0=";
hardeningDisable = [ "all" ];

postInstall = ''
Expand Down

0 comments on commit c6416ec

Please sign in to comment.