mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-28 16:37:24 +02:00
telemetry: Refactor GRPC Server Handler (#756)
* Refactor GRPC server stats handler location
This commit is contained in:
parent
e2a7149c36
commit
ca5f68e371
7 changed files with 106 additions and 21 deletions
|
@ -14,7 +14,7 @@ import (
|
|||
|
||||
"github.com/pomerium/pomerium/config"
|
||||
"github.com/pomerium/pomerium/internal/log"
|
||||
"github.com/pomerium/pomerium/internal/telemetry/metrics"
|
||||
"github.com/pomerium/pomerium/internal/telemetry"
|
||||
"github.com/pomerium/pomerium/internal/telemetry/requestid"
|
||||
)
|
||||
|
||||
|
@ -61,7 +61,7 @@ func NewServer() (*Server, error) {
|
|||
return nil, err
|
||||
}
|
||||
srv.GRPCServer = grpc.NewServer(
|
||||
grpc.StatsHandler(metrics.NewGRPCServerStatsHandler("control_plane")),
|
||||
grpc.StatsHandler(telemetry.NewGRPCServerStatsHandler("control_plane")),
|
||||
grpc.UnaryInterceptor(requestid.UnaryServerInterceptor()),
|
||||
grpc.StreamInterceptor(requestid.StreamServerInterceptor()),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue