Skip to content
ocgrpc opencensus gRPC tools with propagation from Jaeger
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
client.go
client_metrics.go
client_stats_handler.go
doc.go
server.go
server_metrics.go
server_stats_handler.go
stats_common.go
trace_common.go

README.md

ocgrpc_propagation

ocgrpc opencensus gRPC tools with propagation from Jaeger

This a copy of ocgrpc adding uber-trace-id compatibility traces.

Server Propagation

Use it exactly like ocgrpc but it will propagate incoming Jaeger traces.

ocgrpc_propag "github.com/akhenakh/ocgrpc_propagation"

gsrv := grpc.NewServer(
  grpc.StatsHandler(&ocgrpc_propag.ServerHandler{}),
)

Client Propagation

gsrv := grpc.NewServer(
  grpc.UnaryInterceptor(ocgrpc_propag.JaegerTracePropagateUnaryInterceptor()),
  grpc.StreamInterceptor(ocgrpc_propag.JaegerTracePropagateStreamInterceptor()),
)

Relevant code parts

trace_common.go

Known issues

Due to conflit in registering views, you can't import zpages anymore.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.