Skip to content

Commit

Permalink
Merge pull request #218 from celian-garcia/fix/wrong-schema-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
celian-garcia authored Jun 27, 2024
2 parents 9394be3 + 3ba704e commit 73fc6f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions otel/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/sdk/resource"
"go.opentelemetry.io/otel/sdk/trace"
semconv "go.opentelemetry.io/otel/semconv/v1.12.0"
semconv "go.opentelemetry.io/otel/semconv/v1.25.0"
)

type Builder struct {
Expand Down Expand Up @@ -77,8 +77,7 @@ func (b *Builder) Build() (async.Task, error) {
func (b *Builder) createDefaultResource(serviceName string) (*resource.Resource, error) {
return resource.Merge(
resource.Default(),
resource.NewWithAttributes(
semconv.SchemaURL,
resource.NewSchemaless(
semconv.ServiceNameKey.String(serviceName),
semconv.ServiceVersionKey.String(version.Version)))
}
Expand Down

0 comments on commit 73fc6f7

Please sign in to comment.