From dd7b4a6a4a5f8086f31dc04ce309e6fd1bda38c7 Mon Sep 17 00:00:00 2001 From: Jonathan Vuillemin Date: Thu, 11 Jan 2024 12:30:02 +0100 Subject: [PATCH] feat(fxtrace): Updated module name --- fxtrace/module.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fxtrace/module.go b/fxtrace/module.go index 816b5a8..51dd099 100644 --- a/fxtrace/module.go +++ b/fxtrace/module.go @@ -15,8 +15,12 @@ import ( "go.uber.org/fx" ) -const ModuleName = "fx-trace" +// ModuleName is the module name. +const ModuleName = "trace" +// FxTraceModule is the [Fx] trace module. +// +// [Fx]: https://github.com/uber-go/fx var FxTraceModule = fx.Module( ModuleName, fx.Provide( @@ -29,6 +33,7 @@ var FxTraceModule = fx.Module( ), ) +// FxTraceParam allows injection of the required dependencies in [NewFxTracerProvider]. type FxTraceParam struct { fx.In LifeCycle fx.Lifecycle @@ -37,6 +42,7 @@ type FxTraceParam struct { Config *config.Config } +// NewFxTracerProvider returns a [otelsdktrace.TracerProvider]. func NewFxTracerProvider(p FxTraceParam) (*otelsdktrace.TracerProvider, error) { ctx := context.Background()