Skip to content

Commit

Permalink
feat: use WithOpenTelemetryZap
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Jan 12, 2025
1 parent 1f6e7e6 commit 575e11c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/chotel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func main() {
if err != nil {
return errors.Wrap(err, "init")
}
ctx = zctx.WithOpenTelemetryZap(ctx)
return a.Run(ctx)
})
}
Expand Down
2 changes: 2 additions & 0 deletions cmd/oteldb/oteldb.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (

"github.com/go-faster/errors"
"github.com/go-faster/sdk/app"
"github.com/go-faster/sdk/zctx"
"go.uber.org/zap"

"github.com/go-faster/oteldb/internal/autopyro"
Expand All @@ -15,6 +16,7 @@ import (

func main() {
app.Run(func(ctx context.Context, lg *zap.Logger, m *app.Telemetry) error {
ctx = zctx.WithOpenTelemetryZap(ctx)
shutdown, err := autozpages.Setup(m.TracerProvider())
if err != nil {
return errors.Wrap(err, "setup zPages")
Expand Down

0 comments on commit 575e11c

Please sign in to comment.