Crate vector

Source
Expand description

The main library to support building Vector.

Re-exports§

pub use source_sender::SourceSender;

Modules§

amqp
Functionality supporting both the [crate::sources::amqp] source and [crate::sinks::amqp] sink.
api
app
async_read
aws
Shared functionality for the AWS components.
built_info
Includes information about the current build.
cli
codecs
A collection of codecs that can be used to transform between bytes streams / byte messages, byte frames and structured events.
common
Modules that are common between sources, transforms, and sinks.
components
conditions
config
dns
docker
encoding_transcode
enrichment_tables
Functionality to handle enrichment tables.
event
expiring_hash_map
Expiring Hash Map and related types. See ExpiringHashMap.
extra_context
ExtraContext is used for passing extra data to Vector’s components when Vector is used as a library.
gcp
generate
generate_schema
Vector generate-schema command implementation.
heartbeat
Emits a heartbeat internal metric.
http
internal_events
internal_telemetry
kafka
kubernetes
This module contains helpers Kubernetes helpers as well as a custom_reflector which delays the removal of metadata allowing us to enrich events even after the resource is deleted from the Kubernetes cluster.
line_agg
A reusable line aggregation implementation.
list
metrics
net
Networking-related helper functions.
providers
schema
secrets
serde
shutdown
signal
sinks
source_sender
sources
stats
tap
Tap subcommand
tcp
template
Functionality for managing template fields used by Vector’s sinks.
test_util
tls
top
Top subcommand
topology
Topology contains all topology based types.
trace
transforms
types
unit_test
validate

Macros§

assert_downcast_matches
filter_check
Takes an &Option<bool> and returns early if false
indoc
Unindent and produce &'static str or &'static [u8].
log_event
register_validatable_component

Functions§

get_app_name
The name used to identify this Vector application.
get_hostname
Returns the host name of the current system. The hostname can be overridden by setting the VECTOR_HOSTNAME environment variable.
get_slugified_app_name
Returns a slugified version of the name used to identify this Vector application.
get_version
Returns a string containing full version information of the current build.
num_threads
Returns an estimate of the number of recommended threads that Vector should spawn.
vector_version
The current version of Vector in simplified format. <version-number>-nightly.

Type Aliases§

Error
Vector’s basic error type, dynamically dispatched and safe to send across threads.
Result
Vector’s basic result type, defined in terms of Error and generic over T.