mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-02 09:28:09 +02:00
telmetry: add databroker storage metrics and tracing (#1161)
* telmetry: add databroker storage metrics and tracing
This commit is contained in:
parent
29fb96a955
commit
3c4513a91e
12 changed files with 255 additions and 15 deletions
|
@ -25,8 +25,6 @@ import (
|
|||
"github.com/pomerium/pomerium/internal/telemetry/metrics"
|
||||
"github.com/pomerium/pomerium/internal/urlutil"
|
||||
"github.com/pomerium/pomerium/pkg/cryptutil"
|
||||
"github.com/pomerium/pomerium/pkg/storage/inmemory"
|
||||
"github.com/pomerium/pomerium/pkg/storage/redis"
|
||||
)
|
||||
|
||||
// DisableHeaderKey is the key used to check whether to disable setting header
|
||||
|
@ -491,8 +489,8 @@ func (o *Options) Validate() error {
|
|||
o.DataBrokerURLString = o.CacheURLString
|
||||
}
|
||||
switch o.DataBrokerStorageType {
|
||||
case inmemory.Name:
|
||||
case redis.Name:
|
||||
case StorageInMemoryName:
|
||||
case StorageRedisName:
|
||||
if o.DataBrokerStorageConnectionString == "" {
|
||||
return errors.New("config: missing databroker storage backend dsn")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue