Documentation
¶
Overview ¶
Package push sends a sink's batch over HTTP, the way the sinks that talk to services share: gzip, status codes mapped to retries, and Retry-After.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Do ¶
Do sends r. Errors that retrying can fix (connection errors, 408, 429 and 5xx) are returned as they are, or with logging.RetryAfter; the rest are logging.Permanent.
func ParseHeaders ¶
ParseHeaders reads ParsePairs' format as headers.
Types ¶
type Pair ¶
type Pair struct{ Key, Value string }
Pair is a key and its value.
func ParsePairs ¶
ParsePairs reads "k=v,k2=v2", as OTEL_EXPORTER_OTLP_HEADERS and OTEL_RESOURCE_ATTRIBUTES have them, with URL-encoded values.
Click to show internal directories.
Click to hide internal directories.