telemetry

package
v0.43.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 25 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package telemetry can report anonymized, aggregate usage data about a Kubo node to an HTTP collector. Kubo ships with no collector, so a node collects nothing and writes no identifier unless its operator sets Plugins.Plugins.telemetry.Config.Endpoint. A report never carries anything that identifies a person, a file, or a peer.

Operators can turn it off at runtime with IPFS_TELEMETRY=off, with DO_NOT_TRACK=1, with Plugins.Plugins.telemetry.Config.Mode, or by disabling the plugin. A distributor who runs a collector for their own builds can set it at link time:

go build -ldflags "-X github.com/ipfs/kubo/plugin/plugins/telemetry.defaultEndpoint=https://telemetry.example.com" ./cmd/ipfs

See docs/telemetry.md for the operator-facing version of all this.

Index

Constants

This section is empty.

Variables

View Source
var Plugins = []plugin.Plugin{
	&telemetryPlugin{},
}

Functions

This section is empty.

Types

type LogEvent

type LogEvent struct {
	UUID string `json:"uuid"`

	AgentVersion string `json:"agent_version"`

	PrivateNetwork bool `json:"private_network"`

	BootstrappersCustom bool `json:"bootstrappers_custom"`

	RepoSizeBucket uint64 `json:"repo_size_bucket"`

	UptimeBucket time.Duration `json:"uptime_bucket"`

	ReproviderStrategy         string `json:"reprovider_strategy"`
	ProvideDHTSweepEnabled     bool   `json:"provide_dht_sweep_enabled"`
	ProvideDHTIntervalCustom   bool   `json:"provide_dht_interval_custom"`
	ProvideDHTMaxWorkersCustom bool   `json:"provide_dht_max_workers_custom"`

	RoutingType                 string `json:"routing_type"`
	RoutingAcceleratedDHTClient bool   `json:"routing_accelerated_dht_client"`
	RoutingDelegatedCount       int    `json:"routing_delegated_count"`

	AutoNATServiceMode  string `json:"autonat_service_mode"`
	AutoNATReachability string `json:"autonat_reachability"`

	AutoConf       bool `json:"autoconf"`
	AutoConfCustom bool `json:"autoconf_custom"`

	SwarmEnableHolePunching  bool `json:"swarm_enable_hole_punching"`
	SwarmCircuitAddresses    bool `json:"swarm_circuit_addresses"`
	SwarmIPv4PublicAddresses bool `json:"swarm_ipv4_public_addresses"`
	SwarmIPv6PublicAddresses bool `json:"swarm_ipv6_public_addresses"`

	AutoTLSAutoWSS            bool `json:"auto_tls_auto_wss"`
	AutoTLSDomainSuffixCustom bool `json:"auto_tls_domain_suffix_custom"`

	DiscoveryMDNSEnabled bool `json:"discovery_mdns_enabled"`

	PlatformOS            string `json:"platform_os"`
	PlatformArch          string `json:"platform_arch"`
	PlatformContainerized bool   `json:"platform_containerized"`
	PlatformVM            bool   `json:"platform_vm"`
}

A LogEvent is the object sent to the telemetry endpoint. See https://github.com/ipfs/kubo/blob/master/docs/telemetry.md for details.

Jump to

Keyboard shortcuts

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