Documentation ¶
Index ¶
- func StreamServerInterceptor(options ...Option) grpc.StreamServerInterceptor
- func TraceStreamServerInterceptor() grpc.StreamServerInterceptordeprecated
- func TraceUnaryClientInterceptor() grpc.UnaryClientInterceptordeprecated
- func TraceUnaryServerInterceptor() grpc.UnaryServerInterceptordeprecated
- func UnaryClientInterceptor(options ...Option) grpc.UnaryClientInterceptor
- func UnaryServerInterceptor(options ...Option) grpc.UnaryServerInterceptor
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamServerInterceptor ¶ added in v2.7.0
func StreamServerInterceptor(options ...Option) grpc.StreamServerInterceptor
StreamServerInterceptor returns a middleware that creates datadog-spans on incoming requests, and stores them in the requests' context.
func TraceStreamServerInterceptor
deprecated
added in
v2.1.0
func TraceStreamServerInterceptor() grpc.StreamServerInterceptor
TraceStreamServerInterceptor for Datadog Log Integration, middleware will create span that can be used from context
Deprecated: Use StreamServerInterceptor instead. This function will be removed in a later version.
func TraceUnaryClientInterceptor
deprecated
added in
v2.3.0
func TraceUnaryClientInterceptor() grpc.UnaryClientInterceptor
TraceUnaryClientInterceptor create a client-interceptor to automatically create child-spans, and append to gRPC metadata.
Deprecated: Use UnaryClientInterceptor instead. This function will be removed in a later version.
func TraceUnaryServerInterceptor
deprecated
func TraceUnaryServerInterceptor() grpc.UnaryServerInterceptor
TraceUnaryServerInterceptor for Datadog Log Integration, middleware will create span that can be used from context
Deprecated: Use UnaryServerInterceptor instead. This function will be removed in a later version.
func UnaryClientInterceptor ¶ added in v2.7.0
func UnaryClientInterceptor(options ...Option) grpc.UnaryClientInterceptor
UnaryClientInterceptor create a client-interceptor to automatically create child-spans, and append to gRPC metadata. UnaryServerInterceptor returns a middleware that creates datadog-spans on outgoing requests, and adds them to the request's gRPC-metadata.
func UnaryServerInterceptor ¶ added in v2.7.0
func UnaryServerInterceptor(options ...Option) grpc.UnaryServerInterceptor
UnaryServerInterceptor returns a middleware that creates datadog-spans on incoming requests, and stores them in the requests' context.
Types ¶
type Option ¶ added in v2.7.0
type Option func(cfg *config)
Option allows for overriding our default-config.
func WithCustomTag ¶ added in v2.7.0
WithCustomTag will attach the value to the span tagged by the key.
func WithNonErrorCodes ¶ added in v2.7.0
WithNonErrorCodes determines the list of codes which will not be considered errors in instrumentation. This call overrides the default handling of codes.Canceled as a non-error.
func WithServiceName ¶ added in v2.7.0
WithServiceName overrides the service-name set in environment-variable "DD_SERVICE".
func WithUntracedMethods ¶ added in v2.7.0
WithUntracedMethods specifies full methods to be ignored by the server side and client side interceptors. When a request's full method is in 'methods', no spans will be created.