Skip to content

Commit

Permalink
Utilize init() from packages
Browse files Browse the repository at this point in the history
  • Loading branch information
dudo committed Jan 28, 2024
1 parent 168e681 commit 434eb1d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
8 changes: 1 addition & 7 deletions cmd/observer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"

"github.com/orbservability/io/pkg/client"
"github.com/orbservability/telemetry/pkg/logs"
_ "github.com/orbservability/telemetry/pkg/logs"
"github.com/rs/zerolog/log"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
Expand All @@ -17,12 +17,6 @@ import (
func main() {
ctx := context.Background()

// Initialize logger
err := logs.Init()
if err != nil {
log.Fatal().Err(err).Msg("Error initializing logger")
}

// Load Config
cfg, err := config.NewConfig()
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ module orbservability/observer
go 1.21.6

require (
github.com/orbservability/io v0.0.2
github.com/orbservability/io v0.0.3
github.com/orbservability/schemas v0.3.2
github.com/orbservability/telemetry v0.0.1
github.com/orbservability/telemetry v0.0.2
github.com/rs/zerolog v1.31.0
google.golang.org/grpc v1.61.0
px.dev/pxapi v0.5.0
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovk
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA=
github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/orbservability/io v0.0.2 h1:XodWg34V8AFJToQwhQEHR5wHj+npjG2cCN59ffI5vm8=
github.com/orbservability/io v0.0.2/go.mod h1:+HQUXFmfsx0aNWN0vRunKBR0ogKz5Y7AbKx8PddJxnw=
github.com/orbservability/io v0.0.3 h1:oJp6T3J4qDDt2ob1EvzbHKvQX2x384CShvdgcZj2d8A=
github.com/orbservability/io v0.0.3/go.mod h1:+HQUXFmfsx0aNWN0vRunKBR0ogKz5Y7AbKx8PddJxnw=
github.com/orbservability/schemas v0.3.2 h1:duPuMJOQEfQkeqW3SnI2gYPcMv/XdO5c5SDKsSnsZlM=
github.com/orbservability/schemas v0.3.2/go.mod h1:BJ3GdrJ+iOrfpb1/Cgi2bnhvdqrsV13Bw2s2MVxpwGs=
github.com/orbservability/telemetry v0.0.1 h1:YfZKyYpDP+OzWSLV6jm9h89Jqd7iUl9ai4Q3QG2Nm/M=
github.com/orbservability/telemetry v0.0.1/go.mod h1:mvKaBWO+FUvvMqnK+0s4QlIX2/WJivf7Acmcd+3x7ds=
github.com/orbservability/telemetry v0.0.2 h1:UA+oilKFSUqgqBGkz8hGfEcpbinWaZ0hsVSPYT1q4ZQ=
github.com/orbservability/telemetry v0.0.2/go.mod h1:mvKaBWO+FUvvMqnK+0s4QlIX2/WJivf7Acmcd+3x7ds=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
Expand Down

0 comments on commit 434eb1d

Please sign in to comment.