File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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
2024var 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].
3237type 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].
4046func NewFxTracerProvider (p FxTraceParam ) (* otelsdktrace.TracerProvider , error ) {
4147 ctx := context .Background ()
4248
You can’t perform that action at this time.
0 commit comments