kubernetes/vendor/go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc/config.go

const ScopeName

const GRPCStatusCodeKey

type InterceptorFilter

type Filter

type config

type Option

// newConfig returns a config configured with all the passed Options.
func newConfig(opts []Option, role string) *config {}

type propagatorsOption

func (o propagatorsOption) apply(c *config) {}

// WithPropagators returns an Option to use the Propagators when extracting
// and injecting trace context from requests.
func WithPropagators(p propagation.TextMapPropagator) Option {}

type tracerProviderOption

func (o tracerProviderOption) apply(c *config) {}

// WithInterceptorFilter returns an Option to use the request filter.
//
// Deprecated: Use stats handlers instead.
func WithInterceptorFilter(f InterceptorFilter) Option {}

type interceptorFilterOption

func (o interceptorFilterOption) apply(c *config) {}

// WithFilter returns an Option to use the request filter.
func WithFilter(f Filter) Option {}

type filterOption

func (o filterOption) apply(c *config) {}

// WithTracerProvider returns an Option to use the TracerProvider when
// creating a Tracer.
func WithTracerProvider(tp trace.TracerProvider) Option {}

type meterProviderOption

func (o meterProviderOption) apply(c *config) {}

// WithMeterProvider returns an Option to use the MeterProvider when
// creating a Meter. If this option is not provide the global MeterProvider will be used.
func WithMeterProvider(mp metric.MeterProvider) Option {}

type Event

const ReceivedEvents

const SentEvents

type messageEventsProviderOption

func (m messageEventsProviderOption) apply(c *config) {}

// WithMessageEvents configures the Handler to record the specified events
// (span.AddEvent) on spans. By default only summary attributes are added at the
// end of the request.
//
// Valid events are:
//   - ReceivedEvents: Record the number of bytes read after every gRPC read operation.
//   - SentEvents: Record the number of bytes written after every gRPC write operation.
func WithMessageEvents(events ...Event) Option {}

type spanStartOption

func (o spanStartOption) apply(c *config) {}

// WithSpanOptions configures an additional set of
// trace.SpanOptions, which are applied to each new span.
func WithSpanOptions(opts ...trace.SpanStartOption) Option {}