From 834ae3c589341da26b39c8dc142e55a5b50eaed0 Mon Sep 17 00:00:00 2001 From: Alex Boten <223565+codeboten@users.noreply.github.com> Date: Thu, 25 Apr 2024 14:07:05 -0700 Subject: [PATCH] add console definition for log record exporter (#84) This is consistent with the other signals. Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com> --- examples/kitchen-sink.yaml | 6 ++++++ schema/logger_provider.json | 3 +++ 2 files changed, 9 insertions(+) diff --git a/examples/kitchen-sink.yaml b/examples/kitchen-sink.yaml index 1dbe388..d8d5624 100644 --- a/examples/kitchen-sink.yaml +++ b/examples/kitchen-sink.yaml @@ -91,6 +91,12 @@ logger_provider: # # Environment variable: OTEL_EXPORTER_OTLP_INSECURE, OTEL_EXPORTER_OTLP_LOGS_INSECURE insecure: false + # Configure a simple span processor. + - simple: + # Configure exporter. + exporter: + # Configure exporter to be console. + console: {} # Configure log record limits. See also attribute_limits. limits: # Configure max log record attribute value size. Overrides attribute_limits.attribute_value_length_limit. diff --git a/schema/logger_provider.json b/schema/logger_provider.json index e41568a..4bad0ca 100644 --- a/schema/logger_provider.json +++ b/schema/logger_provider.json @@ -64,6 +64,9 @@ "properties": { "otlp": { "$ref": "common.json#/$defs/Otlp" + }, + "console": { + "$ref": "common.json#/$defs/Console" } }, "patternProperties": {