Closed ucatbas closed 3 weeks ago
The pull request includes significant updates to the go.mod
file, reflecting changes in various dependency versions, particularly for Google Cloud and OpenTelemetry libraries. Additionally, it introduces a new file, pkg/cmd/log.go
, which implements a logging handler factory for OTLP and GCP logging. The pkg/cmd/serve.go
file has been modified to replace the OpenTelemetry logging exporter with a new handler created through the factory, improving error handling and streamlining the logging setup process.
File | Change Summary |
---|---|
go.mod | Updated multiple dependency versions, including google.golang.org/genproto , cloud.google.com/go , and others. New indirect dependency github.com/Permify/sloggcp v0.0.3 added. |
pkg/cmd/log.go | Introduced a logging handler factory with functions for creating OTLP and GCP log handlers, including error handling. |
pkg/cmd/serve.go | Removed OpenTelemetry logging exporter; replaced with a logging handler from HandlerFactory . Updated error handling for logger initialization. Renamed variable from exporter to customHandler . |
go.mod
file to include dependencies related to Google Cloud, aligning with the updates in this PR.🐇 In the meadow, I hop with glee,
New logs and handlers, oh what a spree!
With versions updated, we dance and play,
In the world of code, we find our way.
Hooray for changes, let’s celebrate,
With every new feature, we elevate! 🎉
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes
Chores