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 (
15
15
"go.uber.org/fx"
16
16
)
17
17
18
- const ModuleName = "fx-trace"
18
+ // ModuleName is the module name.
19
+ const ModuleName = "trace"
19
20
21
+ // FxTraceModule is the [Fx] trace module.
22
+ //
23
+ // [Fx]: https://github.com/uber-go/fx
20
24
var FxTraceModule = fx .Module (
21
25
ModuleName ,
22
26
fx .Provide (
@@ -29,6 +33,7 @@ var FxTraceModule = fx.Module(
29
33
),
30
34
)
31
35
36
+ // FxTraceParam allows injection of the required dependencies in [NewFxTracerProvider].
32
37
type FxTraceParam struct {
33
38
fx.In
34
39
LifeCycle fx.Lifecycle
@@ -37,6 +42,7 @@ type FxTraceParam struct {
37
42
Config * config.Config
38
43
}
39
44
45
+ // NewFxTracerProvider returns a [otelsdktrace.TracerProvider].
40
46
func NewFxTracerProvider (p FxTraceParam ) (* otelsdktrace.TracerProvider , error ) {
41
47
ctx := context .Background ()
42
48
You can’t perform that action at this time.
0 commit comments