receiver

package
v0.7.122 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package receiver forwards buffered telemetry events to Segment. It runs inside the detached "chunk receive-telemetry" subprocess spawned by internal/telemetry's delegateDestination, out of the parent CLI's exit path.

Index

Constants

View Source
const (
	// EnvWriteKey configures the Segment write key for the delegate subprocess.
	EnvWriteKey = "__CHUNK_TELEMETRY_WRITE_KEY"
	// EnvTelemetryEndpoint configures the Segment endpoint for the delegate subprocess.
	EnvTelemetryEndpoint = "__CHUNK_TELEMETRY_ENDPOINT"
)

Variables

This section is empty.

Functions

func Receive

func Receive(in io.Reader) (err error)

Receive decodes a JSON array of analytics.Track events from in and forwards them to Segment using the write key and endpoint from the environment.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL