Versions in this module Expand all Collapse all v1 v1.3.0 Jul 14, 2023 v1.2.0 Mar 14, 2023 Changes in this version + const DefaultStdout + var DefaultCred = credentials.NewClientTLSFromCert(nil, "") + func GetTraceId(ctx context.Context) string + func GrpcStreamTraceInterceptor() grpc.StreamServerInterceptor + func GrpcUnaryTraceInterceptor() grpc.UnaryServerInterceptor + func InitHttpHandler(handler http.Handler) http.Handler + func SetLog(l logger.Logger) + func Setup(opts ...Option) + func SpanStart(ctx context.Context, spanName string, opts ...oteltrace.SpanStartOption) (context.Context, oteltrace.Span) + func Stop() + func TracerIsEnable() bool + type Config struct + type Exporter struct + Creds credentials.TransportCredentials + ExporterEndpoint string + Insecure bool + type Option func(*Config) + func WithAttributes(attributes map[string]string) Option + func WithErrorHandler(errorHandler otel.ErrorHandler) Option + func WithHeaders(headers map[string]string) Option + func WithIDGenerator(idGenerator sdktrace.IDGenerator) Option + func WithMetricExporter(metricExporter *Exporter) Option + func WithMetricReportPeriod(period string) Option + func WithResource(resource *resource.Resource) Option + func WithSampleRatio(sampleRatio float64) Option + func WithServiceInfo(serviceInfo *ServiceInfo) Option + func WithTraceBatchOptions(options []sdktrace.BatchSpanProcessorOption) Option + func WithTraceExporter(traceExporter *Exporter) Option + type ServiceInfo struct + Name string + Namespace string + Version string