Documentation
¶
Index ¶
- func Init(cfg Config) error
- type Config
- type YourCustomHandler
- type YourCustomMetricExporter
- func (m YourCustomMetricExporter) Aggregation(metric.InstrumentKind) metric.Aggregation
- func (m YourCustomMetricExporter) Export(context.Context, *metricdata.ResourceMetrics) error
- func (m YourCustomMetricExporter) ForceFlush(context.Context) error
- func (m YourCustomMetricExporter) Shutdown(context.Context) error
- func (m YourCustomMetricExporter) Temporality(metric.InstrumentKind) metricdata.Temporality
- type YourCustomSpanExporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Export even in the dev environment.
ForceExport bool
// The interval for exporting metric data.
// The default is 60 seconds.
MetricInterval time.Duration
// The minimum level at which logs will be written.
// Defaults to [slog.LevelInfo].
LogLevel slog.Leveler
}
[START config]
type YourCustomHandler ¶
type YourCustomHandler struct {
Options *slog.HandlerOptions
}
type YourCustomMetricExporter ¶
type YourCustomMetricExporter struct{}
func (YourCustomMetricExporter) Aggregation ¶
func (m YourCustomMetricExporter) Aggregation(metric.InstrumentKind) metric.Aggregation
func (YourCustomMetricExporter) Export ¶
func (m YourCustomMetricExporter) Export(context.Context, *metricdata.ResourceMetrics) error
func (YourCustomMetricExporter) ForceFlush ¶
func (m YourCustomMetricExporter) ForceFlush(context.Context) error
func (YourCustomMetricExporter) Shutdown ¶
func (m YourCustomMetricExporter) Shutdown(context.Context) error
func (YourCustomMetricExporter) Temporality ¶
func (m YourCustomMetricExporter) Temporality(metric.InstrumentKind) metricdata.Temporality
type YourCustomSpanExporter ¶
type YourCustomSpanExporter struct{}
func (YourCustomSpanExporter) ExportSpans ¶
func (e YourCustomSpanExporter) ExportSpans(ctx context.Context, spans []trace.ReadOnlySpan) error
Click to show internal directories.
Click to hide internal directories.