Documentation
¶
Index ¶
- Variables
- type Client
- type GRPCTransport
- type GRPCTransportOption
- type Hook
- type HostMetricsHook
- type Option
- func WithAttributes(attributes ...attribute.KeyValue) Option
- func WithDeploymentEnvironment(deploymentEnvironment string) Option
- func WithHook(hooks ...Hook) 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 RuntimeMetricsHook
- type Transport
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultHooks = []Hook{ &RuntimeMetricsHook{}, &HostMetricsHook{}, }
DefaultHooks are the hooks that are enabled by default.
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
type HostMetricsHook ¶
type HostMetricsHook struct{}
HostMetricsHook is a hook that starts the host metrics collection.
func (*HostMetricsHook) Configured ¶
func (h *HostMetricsHook) Configured(context.Context, *Client) error
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 ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
type RuntimeMetricsHook ¶
type RuntimeMetricsHook struct{}
RuntimeMetricsHook is a hook that starts the runtime metrics collection.
func (*RuntimeMetricsHook) Configured ¶
func (r *RuntimeMetricsHook) Configured(context.Context, *Client) error
Click to show internal directories.
Click to hide internal directories.