Documentation ¶
Index ¶
- func NewTraceBatch() *traceBatch
- type LMTraceIngest
- type LMTraceIngestRequest
- type LMTraceIngestResponse
- type Option
- func WithAuthentication(authProvider utils.AuthParams) Option
- func WithEndpoint(endpoint string) Option
- func WithGzipCompression(gzip bool) Option
- func WithHTTPClient(client *http.Client) Option
- func WithRateLimit(requestCount int, spanCount int, spanCountPerRequest int) Option
- func WithTraceBatchingDisabled() Option
- func WithTraceBatchingInterval(batchingInterval time.Duration) Option
- type SendTracesOptionalParameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTraceBatch ¶ added in v1.0.0
func NewTraceBatch() *traceBatch
Types ¶
type LMTraceIngest ¶
type LMTraceIngest struct {
// contains filtered or unexported fields
}
func NewLMTraceIngest ¶
func NewLMTraceIngest(ctx context.Context, opts ...Option) (*LMTraceIngest, error)
NewLMTraceIngest initializes LMTraceIngest
func (*LMTraceIngest) SendTraces ¶
func (traceIngest *LMTraceIngest) SendTraces(ctx context.Context, td ptrace.Traces, o ...SendTracesOptionalParameters) (*model.IngestResponse, error)
SendTraces is the entry point for receiving trace data
type LMTraceIngestRequest ¶ added in v1.0.0
type LMTraceIngestRequest struct {
TracesPayload model.TracesPayload
}
type LMTraceIngestResponse ¶ added in v1.0.0
type Option ¶
type Option func(*LMTraceIngest) error
func WithAuthentication ¶
func WithAuthentication(authProvider utils.AuthParams) Option
WithAuthentication is used for passing authentication token if not set in environment variables.
func WithEndpoint ¶ added in v0.6.1
WithEndpoint is used to set Endpoint URL to export traces
func WithGzipCompression ¶
WithGzipCompression can be used to enable/disable gzip compression of Trace payload Note: By default, gzip compression is enabled.
func WithHTTPClient ¶
WithHTTPClient is used to set HTTP client
func WithRateLimit ¶
WithRateLimit is used to limit the Trace request count per minute
func WithTraceBatchingDisabled ¶
func WithTraceBatchingDisabled() Option
WithTraceBatchingDisabled is used for disabling Trace batching.
func WithTraceBatchingInterval ¶
WithTraceBatchingInterval is used for passing batch time interval.
type SendTracesOptionalParameters ¶ added in v1.0.0
type SendTracesOptionalParameters struct { }
func NewSendTracesOptionalParameters ¶ added in v1.0.0
func NewSendTracesOptionalParameters() *SendTracesOptionalParameters
Click to show internal directories.
Click to hide internal directories.