Skip to content

Commit

Permalink
Merge pull request #1669 from authzed/adjust-datastore-metrics
Browse files Browse the repository at this point in the history
make datastore metrics more representative of the actual underlying datastore
  • Loading branch information
josephschorr authored Dec 1, 2023
2 parents ada2eca + c7a9678 commit b08d397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@ func (c *Config) Complete(ctx context.Context) (RunnableServer, error) {
cachingMode = schemacaching.WatchIfSupported
}

ds = proxy.NewObservableDatastoreProxy(ds)
ds = proxy.NewSingleflightDatastoreProxy(ds)
ds = schemacaching.NewCachingDatastoreProxy(ds, nscc, c.DatastoreConfig.GCWindow, cachingMode)
ds = proxy.NewObservableDatastoreProxy(ds)
closeables.AddWithError(ds.Close)

enableGRPCHistogram()
Expand Down

0 comments on commit b08d397

Please sign in to comment.