From 421f66f72ff0cbd008fb6c4b09f4cdb237ce5f7f Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Fri, 22 Sep 2023 15:24:25 -0600 Subject: [PATCH] chore: remove unused exporter func --- go/adapter/opentelemetry/adapter.go | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/go/adapter/opentelemetry/adapter.go b/go/adapter/opentelemetry/adapter.go index a5d1eed..6c75e2c 100644 --- a/go/adapter/opentelemetry/adapter.go +++ b/go/adapter/opentelemetry/adapter.go @@ -2,8 +2,6 @@ package opentelemetry import ( "context" - "encoding/binary" - "encoding/hex" "log" "time" @@ -85,32 +83,6 @@ func NewOTelAdapter(config *OTelConfig) *OTelAdapter { return adapter } -func JaegerTraceExporter(traceId string, parentId []byte, name string, start, end time.Time) *trace.Span { - if parentId == nil { - parentId = []byte{} - } - - traceIdB, err := hex.DecodeString(traceId) - if err != nil { - panic(err) - } - - spanId := observe.NewSpanId().Msb() - spanIdB := make([]byte, 8) - binary.LittleEndian.PutUint64(spanIdB, spanId) - - return &trace.Span{ - TraceId: traceIdB, - SpanId: spanIdB, - ParentSpanId: parentId, - Name: name, - Kind: 1, - StartTimeUnixNano: uint64(start.UnixNano()), - EndTimeUnixNano: uint64(end.UnixNano()), - // uses empty defaults for remaining fields... - } -} - func (h *OTelAdapter) Start(ctx context.Context) { h.AdapterBase.Start(ctx, h) h.Config.client.Start(ctx)