Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(external): fix wording in common sinks components docs #22317

Merged
merged 1 commit into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/codecs/src/encoding/format/cef.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ impl std::fmt::Display for Version {
#[derive(Debug, Clone)]
pub struct CefSerializerOptions {
/// CEF Version. Can be either 0 or 1.
/// Equals to "0" by default.
/// Set to "0" by default.
pub version: Version,

/// Identifies the vendor of the product.
Expand All @@ -208,7 +208,7 @@ pub struct CefSerializerOptions {
/// The value length must be less than or equal to 63.
pub device_product: String,

/// Identifies the version of the problem. In combination with device product and vendor, it composes the unique id of the device that sends messages.
/// Identifies the version of the problem. The combination of the device product, vendor and this value make up the unique id of the device that sends messages.
/// The value length must be less than or equal to 31.
pub device_version: String,

Expand All @@ -220,8 +220,8 @@ pub struct CefSerializerOptions {
/// Reflects importance of the event.
///
/// It must point to a number from 0 to 10.
/// 0 = Lowest, 10 = Highest.
/// Equals to "cef.severity" by default.
/// 0 = lowest_importance, 10 = highest_importance.
/// Set to "cef.severity" by default.
pub severity: ConfigTargetPath,

/// This is a path that points to the human-readable description of a log event.
Expand Down
22 changes: 11 additions & 11 deletions lib/codecs/src/encoding/format/csv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ pub enum QuoteStyle {
Necessary,

/// Puts quotes around all fields that are non-numeric.
/// Namely, when writing a field that does not parse as a valid float or integer,
/// then quotes are used even if they aren't strictly necessary.
/// This means that when writing a field that does not parse as a valid float or integer,
/// quotes are used even if they aren't strictly necessary.
NonNumeric,

/// Never writes quotes, even if it produces invalid CSV data.
Expand Down Expand Up @@ -84,9 +84,9 @@ pub struct CsvSerializerOptions {
)]
pub delimiter: u8,

/// Enable double quote escapes.
/// Enables double quote escapes.
///
/// This is enabled by default, but it may be disabled. When disabled, quotes in
/// This is enabled by default, but you can disable it. When disabled, quotes in
/// field data are escaped instead of doubled.
#[serde(
default = "default_double_quote",
Expand All @@ -99,7 +99,7 @@ pub struct CsvSerializerOptions {
/// In some variants of CSV, quotes are escaped using a special escape character
/// like \ (instead of escaping quotes by doubling them).
///
/// To use this, `double_quotes` needs to be disabled as well otherwise it is ignored.
/// To use this, `double_quotes` needs to be disabled as well; otherwise, this setting is ignored.
#[configurable(metadata(docs::type_override = "ascii_char"))]
#[serde(
default = "default_escape",
Expand All @@ -121,18 +121,18 @@ pub struct CsvSerializerOptions {
#[serde(default, skip_serializing_if = "vector_core::serde::is_default")]
pub quote_style: QuoteStyle,

/// Set the capacity (in bytes) of the internal buffer used in the CSV writer.
/// This defaults to a reasonable setting.
/// Sets the capacity (in bytes) of the internal buffer used in the CSV writer.
/// This defaults to 8KB.
#[serde(default = "default_capacity")]
pub capacity: usize,

/// Configures the fields that will be encoded, as well as the order in which they
/// Configures the fields that are encoded, as well as the order in which they
/// appear in the output.
///
/// If a field is not present in the event, the output will be an empty string.
/// If a field is not present in the event, the output for that field is an empty string.
///
/// Values of type `Array`, `Object`, and `Regex` are not supported and the
/// output will be an empty string.
/// Values of type `Array`, `Object`, and `Regex` are not supported, and the
/// output for any of these types is an empty string.
pub fields: Vec<ConfigTargetPath>,
}

Expand Down
6 changes: 3 additions & 3 deletions lib/codecs/src/encoding/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,11 @@ pub enum SerializerConfig {
/// Vector's encoder currently adheres more strictly to the GELF spec, with
/// the exception that some characters such as `@` are allowed in field names.
///
/// Other GELF codecs such as Loki's, use a [Go SDK][implementation] that is maintained
/// by Graylog, and is much more relaxed than the GELF spec.
/// Other GELF codecs, such as Loki's, use a [Go SDK][implementation] that is maintained
/// by Graylog and is much more relaxed than the GELF spec.
///
/// Going forward, Vector will use that [Go SDK][implementation] as the reference implementation, which means
/// the codec may continue to relax the enforcement of specification.
/// the codec might continue to relax the enforcement of the specification.
///
/// [gelf]: https://docs.graylog.org/docs/gelf
/// [implementation]: https://github.com/Graylog2/go-gelf/blob/v2/gelf/reader.go
Expand Down
6 changes: 3 additions & 3 deletions lib/vector-core/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,9 @@ impl From<SourceAcknowledgementsConfig> for AcknowledgementsConfig {
pub struct AcknowledgementsConfig {
/// Whether or not end-to-end acknowledgements are enabled.
///
/// When enabled for a sink, any source connected to that sink where the source supports
/// end-to-end acknowledgements as well, waits for events to be acknowledged by **all
/// connected** sinks before acknowledging them at the source.
/// When enabled for a sink, any source that supports end-to-end
/// acknowledgements that is connected to that sink waits for events
/// to be acknowledged by **all connected sinks** before acknowledging them at the source.
///
/// Enabling or disabling acknowledgements at the sink level takes precedence over any global
/// [`acknowledgements`][global_acks] configuration.
Expand Down
6 changes: 3 additions & 3 deletions lib/vector-core/src/tls/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub struct TlsConfig {
/// If enabled, certificates must not be expired and must be issued by a trusted
/// issuer. This verification operates in a hierarchical manner, checking that the leaf certificate (the
/// certificate presented by the client/server) is not only valid, but that the issuer of that certificate is also valid, and
/// so on until the verification process reaches a root certificate.
/// so on, until the verification process reaches a root certificate.
///
/// Do NOT set this to `false` unless you understand the risks of not verifying the validity of certificates.
pub verify_certificate: Option<bool>,
Expand All @@ -109,7 +109,7 @@ pub struct TlsConfig {

/// Sets the list of supported ALPN protocols.
///
/// Declare the supported ALPN protocols, which are used during negotiation with peer. They are prioritized in the order
/// Declare the supported ALPN protocols, which are used during negotiation with a peer. They are prioritized in the order
/// that they are defined.
#[configurable(metadata(docs::examples = "h2"))]
pub alpn_protocols: Option<Vec<String>>,
Expand All @@ -127,7 +127,7 @@ pub struct TlsConfig {
/// The certificate must be in DER, PEM (X.509), or PKCS#12 format. Additionally, the certificate can be provided as
/// an inline string in PEM format.
///
/// If this is set, and is not a PKCS#12 archive, `key_file` must also be set.
/// If this is set _and_ is not a PKCS#12 archive, `key_file` must also be set.
#[serde(alias = "crt_path")]
#[configurable(metadata(docs::examples = "/path/to/host_certificate.crt"))]
#[configurable(metadata(docs::human_name = "Certificate File Path"))]
Expand Down
2 changes: 1 addition & 1 deletion src/transforms/metric_to_log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub struct MetricToLogConfig {

/// Controls how metric tag values are encoded.
///
/// When set to `single`, only the last non-bare value of tags are displayed with the
/// When set to `single`, only the last non-bare value of tags is displayed with the
/// metric. When set to `full`, all metric tags are exposed as separate assignments as
/// described by [the `native_json` codec][vector_native_json].
///
Expand Down
48 changes: 24 additions & 24 deletions website/cue/reference/components/sinks/base/amqp.cue
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ base: components: sinks: amqp: configuration: {
description: """
Whether or not end-to-end acknowledgements are enabled.

When enabled for a sink, any source connected to that sink where the source supports
end-to-end acknowledgements as well, waits for events to be acknowledged by **all
connected** sinks before acknowledging them at the source.
When enabled for a sink, any source that supports end-to-end
acknowledgements that is connected to that sink waits for events
to be acknowledged by **all connected sinks** before acknowledging them at the source.

Enabling or disabling acknowledgements at the sink level takes precedence over any global
[`acknowledgements`][global_acks] configuration.
Expand Down Expand Up @@ -90,7 +90,7 @@ base: components: sinks: amqp: configuration: {
}
device_version: {
description: """
Identifies the version of the problem. In combination with device product and vendor, it composes the unique id of the device that sends messages.
Identifies the version of the problem. The combination of the device product, vendor and this value make up the unique id of the device that sends messages.
The value length must be less than or equal to 31.
"""
required: true
Expand Down Expand Up @@ -123,16 +123,16 @@ base: components: sinks: amqp: configuration: {
Reflects importance of the event.

It must point to a number from 0 to 10.
0 = Lowest, 10 = Highest.
Equals to "cef.severity" by default.
0 = lowest_importance, 10 = highest_importance.
Set to "cef.severity" by default.
"""
required: true
type: string: {}
}
version: {
description: """
CEF Version. Can be either 0 or 1.
Equals to "0" by default.
Set to "0" by default.
"""
required: true
type: string: enum: {
Expand Down Expand Up @@ -166,11 +166,11 @@ base: components: sinks: amqp: configuration: {
Vector's encoder currently adheres more strictly to the GELF spec, with
the exception that some characters such as `@` are allowed in field names.

Other GELF codecs such as Loki's, use a [Go SDK][implementation] that is maintained
by Graylog, and is much more relaxed than the GELF spec.
Other GELF codecs, such as Loki's, use a [Go SDK][implementation] that is maintained
by Graylog and is much more relaxed than the GELF spec.

Going forward, Vector will use that [Go SDK][implementation] as the reference implementation, which means
the codec may continue to relax the enforcement of specification.
the codec might continue to relax the enforcement of the specification.

[gelf]: https://docs.graylog.org/docs/gelf
[implementation]: https://github.com/Graylog2/go-gelf/blob/v2/gelf/reader.go
Expand Down Expand Up @@ -234,8 +234,8 @@ base: components: sinks: amqp: configuration: {
type: object: options: {
capacity: {
description: """
Set the capacity (in bytes) of the internal buffer used in the CSV writer.
This defaults to a reasonable setting.
Sets the capacity (in bytes) of the internal buffer used in the CSV writer.
This defaults to 8KB.
"""
required: false
type: uint: default: 8192
Expand All @@ -247,9 +247,9 @@ base: components: sinks: amqp: configuration: {
}
double_quote: {
description: """
Enable double quote escapes.
Enables double quote escapes.

This is enabled by default, but it may be disabled. When disabled, quotes in
This is enabled by default, but you can disable it. When disabled, quotes in
field data are escaped instead of doubled.
"""
required: false
Expand All @@ -262,20 +262,20 @@ base: components: sinks: amqp: configuration: {
In some variants of CSV, quotes are escaped using a special escape character
like \\ (instead of escaping quotes by doubling them).

To use this, `double_quotes` needs to be disabled as well otherwise it is ignored.
To use this, `double_quotes` needs to be disabled as well; otherwise, this setting is ignored.
"""
required: false
type: ascii_char: default: "\""
}
fields: {
description: """
Configures the fields that will be encoded, as well as the order in which they
Configures the fields that are encoded, as well as the order in which they
appear in the output.

If a field is not present in the event, the output will be an empty string.
If a field is not present in the event, the output for that field is an empty string.

Values of type `Array`, `Object`, and `Regex` are not supported and the
output will be an empty string.
Values of type `Array`, `Object`, and `Regex` are not supported, and the
output for any of these types is an empty string.
"""
required: true
type: array: items: type: string: {}
Expand All @@ -301,8 +301,8 @@ base: components: sinks: amqp: configuration: {
never: "Never writes quotes, even if it produces invalid CSV data."
non_numeric: """
Puts quotes around all fields that are non-numeric.
Namely, when writing a field that does not parse as a valid float or integer,
then quotes are used even if they aren't strictly necessary.
This means that when writing a field that does not parse as a valid float or integer,
quotes are used even if they aren't strictly necessary.
"""
}
}
Expand Down Expand Up @@ -430,7 +430,7 @@ base: components: sinks: amqp: configuration: {
description: """
Sets the list of supported ALPN protocols.

Declare the supported ALPN protocols, which are used during negotiation with peer. They are prioritized in the order
Declare the supported ALPN protocols, which are used during negotiation with a peer. They are prioritized in the order
that they are defined.
"""
required: false
Expand All @@ -452,7 +452,7 @@ base: components: sinks: amqp: configuration: {
The certificate must be in DER, PEM (X.509), or PKCS#12 format. Additionally, the certificate can be provided as
an inline string in PEM format.

If this is set, and is not a PKCS#12 archive, `key_file` must also be set.
If this is set _and_ is not a PKCS#12 archive, `key_file` must also be set.
"""
required: false
type: string: examples: ["/path/to/host_certificate.crt"]
Expand Down Expand Up @@ -493,7 +493,7 @@ base: components: sinks: amqp: configuration: {
If enabled, certificates must not be expired and must be issued by a trusted
issuer. This verification operates in a hierarchical manner, checking that the leaf certificate (the
certificate presented by the client/server) is not only valid, but that the issuer of that certificate is also valid, and
so on until the verification process reaches a root certificate.
so on, until the verification process reaches a root certificate.

Do NOT set this to `false` unless you understand the risks of not verifying the validity of certificates.
"""
Expand Down
12 changes: 6 additions & 6 deletions website/cue/reference/components/sinks/base/appsignal.cue
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ base: components: sinks: appsignal: configuration: {
description: """
Whether or not end-to-end acknowledgements are enabled.

When enabled for a sink, any source connected to that sink where the source supports
end-to-end acknowledgements as well, waits for events to be acknowledged by **all
connected** sinks before acknowledging them at the source.
When enabled for a sink, any source that supports end-to-end
acknowledgements that is connected to that sink waits for events
to be acknowledged by **all connected sinks** before acknowledging them at the source.

Enabling or disabling acknowledgements at the sink level takes precedence over any global
[`acknowledgements`][global_acks] configuration.
Expand Down Expand Up @@ -331,7 +331,7 @@ base: components: sinks: appsignal: configuration: {
description: """
Sets the list of supported ALPN protocols.

Declare the supported ALPN protocols, which are used during negotiation with peer. They are prioritized in the order
Declare the supported ALPN protocols, which are used during negotiation with a peer. They are prioritized in the order
that they are defined.
"""
required: false
Expand All @@ -353,7 +353,7 @@ base: components: sinks: appsignal: configuration: {
The certificate must be in DER, PEM (X.509), or PKCS#12 format. Additionally, the certificate can be provided as
an inline string in PEM format.

If this is set, and is not a PKCS#12 archive, `key_file` must also be set.
If this is set _and_ is not a PKCS#12 archive, `key_file` must also be set.
"""
required: false
type: string: examples: ["/path/to/host_certificate.crt"]
Expand Down Expand Up @@ -404,7 +404,7 @@ base: components: sinks: appsignal: configuration: {
If enabled, certificates must not be expired and must be issued by a trusted
issuer. This verification operates in a hierarchical manner, checking that the leaf certificate (the
certificate presented by the client/server) is not only valid, but that the issuer of that certificate is also valid, and
so on until the verification process reaches a root certificate.
so on, until the verification process reaches a root certificate.

Do NOT set this to `false` unless you understand the risks of not verifying the validity of certificates.
"""
Expand Down
Loading
Loading