Skip to content

Commit

Permalink
feat(fxtrace): Updated module name
Browse files Browse the repository at this point in the history
  • Loading branch information
ekkinox committed Jan 11, 2024
1 parent 33ff873 commit dd7b4a6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion fxtrace/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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
Expand All @@ -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()

Expand Down

0 comments on commit dd7b4a6

Please sign in to comment.