Documentation ¶
Index ¶
- type Client
- type GRPCTransport
- type GRPCTransportOption
- type Option
- func WithAttributes(attributes ...attribute.KeyValue) Option
- func WithDeploymentEnvironment(deploymentEnvironment string) Option
- func WithEnableRuntimeMetrics(enable bool) Option
- func WithLoggerProvider(provider log.LoggerProvider) Option
- func WithMeterProvider(provider metric.MeterProvider) Option
- func WithPropagator(propagator propagation.TextMapPropagator) Option
- func WithResource(resource *sdkresource.Resource) Option
- func WithServiceName(serviceName string) Option
- func WithTraceSampler(sampler sdktrace.Sampler) Option
- func WithTracerProvider(provider trace.TracerProvider) Option
- func WithTransport(transport Transport) Option
- type Provider
- type Transport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) RegisterResource ¶
func (c *Client) RegisterResource(resource *sdkresource.Resource)
type GRPCTransport ¶
type GRPCTransport struct {
// contains filtered or unexported fields
}
func NewGRPCTransport ¶
func NewGRPCTransport(endpoint string, opts ...GRPCTransportOption) *GRPCTransport
func (*GRPCTransport) GetLogExporter ¶
func (*GRPCTransport) GetMetricExporter ¶
func (*GRPCTransport) GetTraceSpanExporter ¶
func (t *GRPCTransport) GetTraceSpanExporter(ctx context.Context) (trace.SpanExporter, error)
type GRPCTransportOption ¶
type GRPCTransportOption func(*GRPCTransport)
func WithGRPCTransportInsecure ¶
func WithGRPCTransportInsecure(insecure bool) GRPCTransportOption
func WithGRPCTransportTraceSampler ¶
func WithGRPCTransportTraceSampler(sampler sdktrace.Sampler) GRPCTransportOption
type Option ¶
type Option func(*Client)
func WithAttributes ¶
func WithLoggerProvider ¶
func WithLoggerProvider(provider log.LoggerProvider) Option
func WithMeterProvider ¶
func WithMeterProvider(provider metric.MeterProvider) Option
func WithPropagator ¶
func WithPropagator(propagator propagation.TextMapPropagator) Option
func WithResource ¶
func WithResource(resource *sdkresource.Resource) Option
func WithServiceName ¶
func WithTraceSampler ¶
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
func WithTransport ¶
Click to show internal directories.
Click to hide internal directories.