From e9f75d321204eee566f8b8c7cfb684191d737298 Mon Sep 17 00:00:00 2001 From: yjy86868 Date: Mon, 29 May 2023 10:54:39 +0800 Subject: [PATCH] Init Commit --- otel-span.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/otel-span.go b/otel-span.go index b573088..67587d3 100644 --- a/otel-span.go +++ b/otel-span.go @@ -16,8 +16,8 @@ type OtelSpan struct { tracer *sdktrace.TracerProvider } -// NewOtelSpan 实例化 OtelSpan -func NewOtelSpan(tracer *sdktrace.TracerProvider) *OtelSpan { +// New 实例化 OtelSpan +func New(tracer *sdktrace.TracerProvider) *OtelSpan { return &OtelSpan{ tracer: tracer, }