Closed ucatbas closed 3 weeks ago
This pull request introduces significant modifications across multiple files to integrate a new internal telemetry system, replacing OpenTelemetry references with calls to internal.Tracer
and internal.Meter
. The changes affect the initialization of metrics and tracing spans in various components, including CheckEngineWithCache
, DirectInvoker
, DataServer
, and several server implementations. The overall functionality and control flow of the systems remain intact, with no alterations to exported or public entity signatures.
File Path | Change Summary |
---|---|
internal/engines/cache/check.go | Removed otel imports; replaced meter and tracer with internal.Meter and internal.Tracer in NewCheckEngineWithCache and Check method. |
internal/invoke/invoke.go | Removed otel imports; replaced otel.Tracer and otel.Meter with internal.Tracer and internal.Meter ; updated multiple methods to use the new tracer. |
internal/monitoring.go | Changed tracer and meter to Tracer and Meter , making them exported. |
internal/servers/bundleServer.go | Replaced tracer with internal.Tracer in Write , Read , and Delete methods. |
internal/servers/dataServer.go | Updated histogram metrics to use internal.Meter ; replaced tracer with internal.Tracer in multiple methods. |
internal/servers/permissionServer.go | Replaced tracer with internal.Tracer in several methods. |
internal/servers/schemaServer.go | Updated NewSchemaServer to use internal.Meter ; replaced tracer with internal.Tracer in multiple methods. |
internal/servers/server.go | Removed tracer and meter declarations. |
internal/servers/tenancyServer.go | Replaced tracer with internal.Tracer in Create , Delete , and List methods. |
internal/servers/watchServer.go | Added import for internal ; updated Watch method to use internal.Tracer . |
internal/storage/memory/tracer.go | Deleted file containing OpenTelemetry tracer for memory. |
internal/storage/postgres/bundleReader.go | Updated Read method to use internal.Tracer . |
internal/storage/postgres/bundleWriter.go | Replaced tracer with internal.Tracer in Write and Delete methods. |
internal/storage/postgres/dataReader.go | Updated multiple methods to use internal.Tracer . |
internal/storage/postgres/dataWriter.go | Replaced tracer with internal.Tracer in Write , Delete , and RunBundle methods. |
internal/storage/postgres/schemaReader.go | Updated multiple methods to use internal.Tracer ; added import for internal . |
internal/storage/postgres/schemaWriter.go | Added import for internal ; updated WriteSchema method to use internal.Tracer . |
internal/storage/postgres/tenantReader.go | Added import for internal ; updated ListTenants method to use internal.Tracer . |
internal/storage/postgres/tenantWriter.go | Replaced tracer with internal.Tracer in CreateTenant and DeleteTenant methods. |
internal/storage/postgres/tracer.go | Deleted file containing OpenTelemetry tracer for PostgreSQL. |
internal/engines/check.go | Enhanced error handling in checkDirectRelation and checkDirectAttribute methods for permission checks. |
internal/engines/expand.go | Improved error handling in expandDirectAttribute and expandDirectRelation methods. |
internal/engines/subjectFilter.go | Added error handling and restructured methods for clarity and functionality. |
pkg/cmd/serve.go | Enhanced error handling in the serve function for configuration loading and other components. |
pkg/database/postgres/postgres.go | Improved error handling and logging in PostgreSQL connection pool management. |
🐰 In the meadow, changes bloom,
Internal systems chase the gloom.
With metrics bright and traces clear,
Our code hops forth, no need to fear!
A telemetry tale, we weave with glee,
For every bunny, a better spree! 🌼
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
Refactor
Chores