Skip to content

Commit

Permalink
Remove unused reva tracing initialization. (#7011)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Swärd authored Aug 14, 2023
1 parent 0258b2b commit d41f1ac
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions ocis-pkg/tracing/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"strings"
"time"

rtrace "github.com/cs3org/reva/v2/pkg/trace"
"github.com/owncloud/ocis/v2/ocis-pkg/log"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/exporters/jaeger"
Expand Down Expand Up @@ -86,15 +85,6 @@ func GetTraceProvider(endpoint, collector, serviceName, traceType string) (*sdkt
return nil, err
}

tp := rtrace.NewTracerProvider(
rtrace.WithEnabled(),
rtrace.WithExporter(traceType),
rtrace.WithInsecure(),
rtrace.WithCollector(collector),
rtrace.WithEndpoint(endpoint),
rtrace.WithServiceName(serviceName),
)
rtrace.SetDefaultTracerProvider(tp)
return sdktrace.NewTracerProvider(
sdktrace.WithBatcher(exp),
sdktrace.WithResource(resource.NewWithAttributes(
Expand Down Expand Up @@ -131,15 +121,6 @@ func GetTraceProvider(endpoint, collector, serviceName, traceType string) (*sdkt
return nil, err
}

tp := rtrace.NewTracerProvider(
rtrace.WithEnabled(),
rtrace.WithExporter(traceType),
rtrace.WithInsecure(),
rtrace.WithCollector(collector),
rtrace.WithEndpoint(endpoint),
rtrace.WithServiceName(serviceName),
)
rtrace.SetDefaultTracerProvider(tp)
return sdktrace.NewTracerProvider(
sdktrace.WithSampler(sdktrace.AlwaysSample()),
sdktrace.WithBatcher(exporter),
Expand Down

0 comments on commit d41f1ac

Please sign in to comment.