Documentation
¶
Overview ¶
Package otel exports completed native Datly records in one application-owned worker. No SDK span construction or exporter call occurs in TrySubmit.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func (*Adapter) Shutdown ¶
Shutdown stops admission and drains accepted work. On deadline it cancels the worker's exporter context; exporters must honor context cancellation.
func (*Adapter) TrySubmit ¶
func (a *Adapter) TrySubmit(c Completion) bool
TrySubmit reserves bounded capacity before detaching native records. Overflow drops export only. Completed native records remain owned by the invocation. The caller must have joined all writers before completing this invocation.
type Completion ¶
type Config ¶
type Config struct {
Enabled bool
MaxSpans int
BatchSize int
BatchTimeout time.Duration
QueueSize int
ExportTimeout time.Duration
ServiceName, ServiceVersion string
// IncludeSQL is opt-in because authored SQL can itself contain sensitive literals.
// Arguments, request headers/bodies and raw error messages are never exported.
IncludeSQL bool
Exporter sdktrace.SpanExporter
}
type HTTPExporter ¶
HTTPExporter configures the official OTLP/HTTP transport; it owns no queue or span mapping. The existing Adapter owns invocation batching and export lifetime.
func (HTTPExporter) New ¶
func (c HTTPExporter) New(ctx context.Context, timeout time.Duration) (sdktrace.SpanExporter, error)
func (HTTPExporter) Validate ¶
func (c HTTPExporter) Validate() error