fluent / fluent/fluentd

Output exception stacktrace as part of @FLUENT_LOG

Open
#3,920 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Ruby
Stars
13.6k
Forks
1.4k
Avg merge
1d 3h
Merged PRs (30d)
20

Description

**Problem**

Fluentd has "stacktrace" support, which outputs the detailed execution context
whenever an unhandled exception happened. This feature is very useful when
investigating errors occured on production system.

Here is an example:

```
2020-01-01 00:00:00 +0000 [warn]: #0 emit transaction failed: error_class=IOError error="closed stream" location="/fluentd/vendor/bundle/ruby/2.6.0/gems/fluentd-1.11.1/lib/fluent/plugin/buffer/file_chunk.rb:82:in `pos'" tag="cafiscode-eks-cluster.default"
2020-01-01 00:00:00 +0000 [warn]: #0 /fluentd/vendor/bundle/ruby/2.7.0/gems/fluentd-1.11.1/lib/fluent/plugin/buffer/file_chunk.rb:82:in `pos'
2020-01-01 00:00:00 +0000 [warn]: #0 /fluentd/vendor/bundle/ruby/2.7.0/gems/fluentd-1.11.1/lib/fluent/plugin/buffer/file_chunk.rb:82:in `rollback'
2020-01-01 00:00:00 +0000 [warn]: #0 /fluentd/vendor/bundle/ruby/2.7.0/gems/fluentd-1.11.1/lib/fluent/plugin/buffer.rb:339:in `rescue in block in write'

```

The problem is that these stacktraces won't never be emitted to `@FLUENT_LOG`.

**Desired Behavior**

* Fluentd should emit the stacktrace to `@FLUENT_LOG` as well.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.