Documentation
¶
Index ¶
- func Meter() metric.Meter
- func NewMetric(opts ...MetricOption) core.Component
- func NewTracer(opts ...TraceOption) core.Component
- func SpanFromContext(ctx context.Context, spanName string, opts ...trace.SpanStartOption) (context.Context, trace.Span)
- type Config
- type MetricOption
- type TraceOption
- func WithTraceExporter(exporter sdktrace.SpanExporter, opts ...sdktrace.BatchSpanProcessorOption) TraceOption
- func WithTraceProvider(provider trace.TracerProvider) TraceOption
- func WithTraceProviderOption(opts ...sdktrace.TracerProviderOption) TraceOption
- func WithTraceSampler(sampler sdktrace.Sampler) TraceOption
- func WithTraceStdoutExporter() TraceOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMetric ¶
func NewMetric(opts ...MetricOption) core.Component
func NewTracer ¶
func NewTracer(opts ...TraceOption) core.Component
Types ¶
type MetricOption ¶
type MetricOption func(c *metricComponent)
func WithMetricOption ¶
func WithMetricOption(opts ...sdkmetric.Option) MetricOption
func WithMetricProvider ¶
func WithMetricProvider(provider metric.MeterProvider) MetricOption
func WithMetricReader ¶
func WithMetricReader(reader sdkmetric.Reader) MetricOption
func WithMetricStdoutReader ¶
func WithMetricStdoutReader() MetricOption
type TraceOption ¶
type TraceOption func(c *traceComponent)
func WithTraceExporter ¶
func WithTraceExporter(exporter sdktrace.SpanExporter, opts ...sdktrace.BatchSpanProcessorOption) TraceOption
func WithTraceProvider ¶
func WithTraceProvider(provider trace.TracerProvider) TraceOption
func WithTraceProviderOption ¶
func WithTraceProviderOption(opts ...sdktrace.TracerProviderOption) TraceOption
func WithTraceSampler ¶
func WithTraceSampler(sampler sdktrace.Sampler) TraceOption
func WithTraceStdoutExporter ¶
func WithTraceStdoutExporter() TraceOption
Click to show internal directories.
Click to hide internal directories.