Skip to content

Commit e440bdd

Browse files
authored
feat(fxtrace): Updated module name (#30)
1 parent 33ff873 commit e440bdd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

fxtrace/module.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@ import (
1515
"go.uber.org/fx"
1616
)
1717

18-
const ModuleName = "fx-trace"
18+
// ModuleName is the module name.
19+
const ModuleName = "trace"
1920

21+
// FxTraceModule is the [Fx] trace module.
22+
//
23+
// [Fx]: https://github.com/uber-go/fx
2024
var FxTraceModule = fx.Module(
2125
ModuleName,
2226
fx.Provide(
@@ -29,6 +33,7 @@ var FxTraceModule = fx.Module(
2933
),
3034
)
3135

36+
// FxTraceParam allows injection of the required dependencies in [NewFxTracerProvider].
3237
type FxTraceParam struct {
3338
fx.In
3439
LifeCycle fx.Lifecycle
@@ -37,6 +42,7 @@ type FxTraceParam struct {
3742
Config *config.Config
3843
}
3944

45+
// NewFxTracerProvider returns a [otelsdktrace.TracerProvider].
4046
func NewFxTracerProvider(p FxTraceParam) (*otelsdktrace.TracerProvider, error) {
4147
ctx := context.Background()
4248

0 commit comments

Comments
 (0)