Skip to content

Commit

Permalink
fix(external docs): Document additional encoding fields
Browse files Browse the repository at this point in the history
Ensure `except_fields`, `only_fields`, and `timestamp_format` appear on
all sinks supporting `encoding`. Previously they only appeared on sinks
that had healthchecks.

Fixes: #6949

Signed-off-by: Jesse Szwedko <[email protected]>
  • Loading branch information
jszwedko committed Apr 14, 2021
1 parent 6822c86 commit b86802b
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions docs/reference/components/sinks.cue
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ components: sinks: [Name=string]: {
}
}

if features.healthcheck.enabled {except_fields: {
except_fields: {
common: false
description: "Prevent the sink from encoding the specified labels."
description: "Prevent the sink from encoding the specified fields."
required: false
type: array: {
default: null
Expand All @@ -174,31 +174,30 @@ components: sinks: [Name=string]: {
}
}

only_fields: {
common: false
description: "Prevent the sink from encoding the specified labels."
required: false
type: array: {
default: null
items: type: string: {
examples: ["message", "parent.child"]
syntax: "field_path"
}
only_fields: {
common: false
description: "Prevent the sink from encoding the specified fields."
required: false
type: array: {
default: null
items: type: string: {
examples: ["message", "parent.child"]
syntax: "field_path"
}
}
}

timestamp_format: {
common: false
description: "How to format event timestamps."
required: false
type: string: {
default: "rfc3339"
enum: {
rfc3339: "Formats as a RFC3339 string"
unix: "Formats as a unix timestamp"
}
syntax: "literal"
timestamp_format: {
common: false
description: "How to format event timestamps."
required: false
type: string: {
default: "rfc3339"
enum: {
rfc3339: "Formats as a RFC3339 string"
unix: "Formats as a unix timestamp"
}
syntax: "literal"
}
}
}
Expand Down

0 comments on commit b86802b

Please sign in to comment.