modulepackage
0.0.0-20240311065314-852ac0d13f81
Repository: https://github.com/opsramp/libtrace-go.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
AddField adds a Field to the global scope.
Close waits for all in-flight messages to be sent.
Flush closes and reopens the Output interface, ensuring events are sent without waiting on the batch to be sent asyncronously.
NewBuilder creates a new event builder.
NewClient creates a Client with defaults correctly set.
NewEvent creates a new event prepopulated with any Fields present in the global scope.
Responses returns the channel from which the caller can read the responses to sent events.
# Constants
DefaultBatchTimeout how frequently to send unfilled batches.
DefaultMaxBatchSize how many events to collect in a batch.
DefaultMaxConcurrentBatches how many batches to maintain in parallel.
DefaultPendingWorkCapacity how many events to queue up for busy batches.
# Variables
UserAgentAddition is a variable set at compile time via -ldflags to allow you to augment the "User-Agent" header that libhoney sends along with each event.
# Structs
Builder is used to create templates for new events, specifying default fields and override settings.
Client represents an object that can create new builders and events and send them somewhere.
ClientConfig is a subset of the global libhoney config that focuses on the configuration of the client itself.
Config specifies settings for initializing the library.
DiscardWriter implements the Output interface and drops all events.
Event is used to hold data that can be sent to Opsramp.
MockOutput implements the Output interface and passes it along to the transmission.MockSender.
Deprecated: Response is deprecated; please use transmission.Response instead.
No description provided by the author
WriterOutput implements the Output interface and passes it along to the transmission.WriterSender.
# Interfaces
Output was responsible for handling events after Send() is called.