You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
146990: roachtest: unconditionally save clusters that show raft fatal errors r=tbg a=tbg
When a cluster's logs contain a raft panic, it will be extended (by a week),
volume snapshots will be taken, and the cluster will not be destroyed. This
gives us the artifacts for a thorough investigation.
Verified manually via:
```
run --local acceptance/invariant-check-detection/failed=true
```
Here is the (editorialized) output:
```
test-teardown: 2025/05/20 08:15:15 cluster.go:2559: running cmd `([ -d logs ] && grep -RE '^...` on nodes [:1-4]; details in run_081515.744363000_n1-4_d-logs-grep-RE-Fraft.log
test-teardown: 2025/05/20 08:15:16 cluster.go:2995: extending cluster by 168h0m0s
test-teardown: 2025/05/20 08:15:16 cluster.go:1104: saving cluster local [tag:] (4 nodes) for debugging (--debug specified)
test-teardown: 2025/05/20 08:15:16 test_impl.go:478: test failure #2: full stack retained in failure_2.log: (test_runner.go:1705).maybeSaveClusterDueToInvariantProblems: invariant problem - snap name invariant-problem-local-8897676895823393049:
logs/foo.log:F250502 11:37:20.387424 1036 raft/raft.go:2411 ⋮ [T1,Vsystem,n1,s1,r155/1:?/Table/113/1/{43/578…-51/201…}?] 80 match(30115) is out of range [lastIndex(30114)]. Was the raft log corrupted, truncated, or lost?
```
Closes#145953.
Informs #146617.
Informs #138028.
Fixes#146355.
Epic: none
147683: pkg/util/log: parse otlp sink from yaml config r=TheComputerM a=TheComputerM
OpenTelemetry is now an industry standard for o11y and is
more efficient than other log sinks currently available.
This commit only defines basic configuration options for
the OTLP sink, like address, insecure, and compression,
and adds logic to parse them from the YAML config. The
actual sink implementation will follow in a future commit.
Informs: #143049
Release note: None
Co-authored-by: Tobias Grieger <[email protected]>
Co-authored-by: Mudit Somani <[email protected]>
Run `cockroach debug check-log-config` to verify the effect of defaults inheritance.
283
+
{{site.data.alerts.end}}
284
+
285
+
286
+
Type-specific configuration options:
287
+
288
+
| Field | Description |
289
+
|--|--|
290
+
|`channels`| the list of logging channels that use this sink. See the [channel selection configuration](#channel-format) section for details. |
291
+
|`address`| the network address of the gRPC endpoint for ingestion of logs on your OpenTelemetry Collector/Platform. The host/address and port parts are separated with a colon. |
292
+
|`insecure`| Disables transport security for the underlying gRPC connection. Inherited from `otlp-defaults.insecure` if not specified. |
293
+
|`compression`| can be "none" or "gzip" to enable gzip compression. Set to "gzip" by default. Inherited from `otlp-defaults.compression` if not specified. |
294
+
295
+
296
+
Configuration options shared across all sink types:
297
+
298
+
| Field | Description |
299
+
|--|--|
300
+
|`filter`| specifies the default minimum severity for log events to be emitted to this sink, when not otherwise specified by the 'channels' sink attribute. |
301
+
|`format`| the entry format to use. |
302
+
|`format-options`| additional options for the format. |
303
+
|`redact`| whether to strip sensitive information before log events are emitted to this sink. |
304
+
|`redactable`| whether to keep redaction markers in the sink's output. The presence of redaction markers makes it possible to strip sensitive data reliably. |
305
+
|`exit-on-error`| whether the logging system should terminate the process if an error is encountered while writing to this sink. |
306
+
|`auditable`| translated to tweaks to the other settings for this sink during validation. For example, it enables `exit-on-error` and changes the format of files from `crdb-v1` to `crdb-v1-count`. |
307
+
|`buffering`| configures buffering for this log sink, or NONE to explicitly disable. See the [common buffering configuration](#buffering-config) section for details. |
0 commit comments