opentelemetry-collector/exporter/loggingexporter
Bogdan Drutu 6a2dc302a9
Move exporter Factory and types to exporter package (#6672)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2022-12-07 10:20:34 -08:00
..
internal/otlptext [exporter/logging] Improve tests for metrics and traces (#6534) 2022-11-14 14:06:33 -08:00
testdata [exporter/logging] Deprecate 'loglevel' in favor of 'verbosity' (#6334) 2022-10-24 09:07:12 -07:00
Makefile split otlp/otlphttp/logging exporters (#6343) 2022-10-25 08:23:58 -07:00
README.md [component] Rename "In development" stability level to "Development" (#6561) 2022-11-16 09:48:18 -08:00
config.go Deprecate special Configs for each component type, use a standard opaque Config (#6617) 2022-11-23 15:02:54 -08:00
config_test.go Deprecate Unmarshal[*]Config in favor of UnmarshalConfig (#6613) 2022-11-23 10:15:39 -08:00
doc.go Adds vanity import check (#4180) 2021-10-12 13:47:36 -07:00
factory.go Move exporter Factory and types to exporter package (#6672) 2022-12-07 10:20:34 -08:00
factory_test.go Deprecate all types and funcs in config package 2022-11-05 10:04:49 -07:00
go.mod Prepare stable modules for version v1.0.0-rc1 (#6690) 2022-12-07 10:06:40 -08:00
go.sum dependabot updates Mon Dec 5 02:31:21 UTC 2022 (#6682) 2022-12-04 21:50:55 -08:00
known_sync_error.go [exporter/logging] Add `syscall.EBADF` to list of known sync errors (#5585) 2022-06-30 02:51:24 -07:00
known_sync_error_windows.go add go 1.19 to tests (#5791) 2022-08-03 09:55:10 -07:00
logging_exporter.go [exporter/logging] Deprecate 'loglevel' in favor of 'verbosity' (#6334) 2022-10-24 09:07:12 -07:00
logging_exporter_test.go [exporter/logging] Deprecate 'loglevel' in favor of 'verbosity' (#6334) 2022-10-24 09:07:12 -07:00

README.md

Logging Exporter

Status
Stability Development
Supported pipeline types traces, metrics, logs
Distributions core, contrib

Exports data to the console via zap.Logger.

Supported pipeline types: traces, metrics, logs

Getting Started

The following settings are optional:

  • loglevel (default = info): the log level of the logging export (debug|info|warn|error). When set to debug, pipeline data is verbosely - Note: This option has been deprecated in favor of verbosity logged.
  • verbosity (default = normal): the verbosity of the logging export (detailed|normal|basic). When set to detailed, pipeline data is verbosely logged.
  • sampling_initial (default = 2): number of messages initially logged each second.
  • sampling_thereafter (default = 500): sampling rate after the initial messages are logged (every Mth message is logged). Refer to Zap docs for more details. on how sampling parameters impact number of messages.

Note

loglevel is deprecated, use verbosity instead.

Example:

exporters:
  logging:
    verbosity: detailed
    sampling_initial: 5
    sampling_thereafter: 200