Skip to content

Commit 7ffdb4b

Browse files
authored
Merge pull request #46447 from brunobat/doc-improvements-otel-logging
Improvements to OTel logging docs
2 parents 2ca87c3 + 06ee70b commit 7ffdb4b

File tree

3 files changed

+25
-10
lines changed

3 files changed

+25
-10
lines changed

docs/src/main/asciidoc/opentelemetry.adoc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,21 @@ If false will disable the default OTLP exporter at *build* time.
144144
|`quarkus.otel.metrics.exporter`
145145
|cdi
146146
|List of exporters to be used for metrics, separated by commas. Has one of the values from _ExporterType_: `otlp`, `cdi`, `none`. This is a *build* time property and setting it to `none` will disable metrics data output.
147+
148+
| Logs
149+
|`quarkus.otel.logs.enabled`
150+
|false
151+
|Logs are disabled by default at *build* time because they are experimental.
152+
153+
| Logs output
154+
|`quarkus.otel.logs.exporter`
155+
|cdi
156+
|List of exporters to be used for logs, separated by commas. Has one of the values from _ExporterType_: `otlp`, `cdi`, `none`. This is a *build* time property and setting it to `none` will disable logs data output.
157+
158+
| Logs output
159+
|`quarkus.otel.logs.handler.enabled`
160+
|true
161+
|If false, disable the OpenTelemetry logs handler at *runtime*. This removes the bridge between the Quarkus logging system (JBoss LogManager) and OpenTelemetry logs.
147162
|===
148163

149164
If you need to enable or disable the exporter at runtime, you can use the xref:opentelemetry-tracing.adoc#sampler[sampler] because it has the ability to filter out all the spans if needed.

extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/config/runtime/BatchLogRecordProcessorConfig.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
public interface BatchLogRecordProcessorConfig {
1111

1212
/**
13-
* The interval, in milliseconds, between two consecutive exports.
13+
* The Batch Log Record Processor interval {@link Duration} between two consecutive exports.
1414
* <p>
15-
* Default is `1000`.
15+
* Default is `1S`.
1616
*/
1717
@WithName("schedule.delay")
1818
@WithDefault("1s")
1919
Duration scheduleDelay();
2020

2121
/**
22-
* The maximum queue size.
22+
* The Batch Log Record Processor maximum queue size.
2323
* <p>
2424
* Default is `2048`.
2525
*/
@@ -28,7 +28,7 @@ public interface BatchLogRecordProcessorConfig {
2828
Integer maxQueueSize();
2929

3030
/**
31-
* The maximum batch size.
31+
* The Batch Log Record Processor maximum batch size.
3232
* <p>
3333
* Default is `512`.
3434
*/
@@ -37,7 +37,7 @@ public interface BatchLogRecordProcessorConfig {
3737
Integer maxExportBatchSize();
3838

3939
/**
40-
* The maximum allowed time, in milliseconds, to export data.
40+
* The Batch Log Record Processor maximum allowed time {@link Duration} to export data.
4141
* <p>
4242
* Default is `30s`.
4343
*/

extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/config/runtime/BatchSpanProcessorConfig.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
public interface BatchSpanProcessorConfig {
1111

1212
/**
13-
* The interval, in milliseconds, between two consecutive exports.
13+
* The Batch Span Processor interval {@link Duration} between two consecutive exports.
1414
* <p>
15-
* Default is `5000`.
15+
* Default is `5s`.
1616
*/
1717
@WithName("schedule.delay")
1818
@WithDefault("5s")
1919
Duration scheduleDelay();
2020

2121
/**
22-
* The maximum queue size.
22+
* The Batch Span Processor maximum queue size.
2323
* <p>
2424
* Default is `2048`.
2525
*/
@@ -28,7 +28,7 @@ public interface BatchSpanProcessorConfig {
2828
Integer maxQueueSize();
2929

3030
/**
31-
* The maximum batch size.
31+
* The Batch Span Processor maximum batch size.
3232
* <p>
3333
* Default is `512`.
3434
*/
@@ -37,7 +37,7 @@ public interface BatchSpanProcessorConfig {
3737
Integer maxExportBatchSize();
3838

3939
/**
40-
* The maximum allowed time, in milliseconds, to export data.
40+
* The Batch Span Processor maximum allowed time {@link Duration} to export data.
4141
* <p>
4242
* Default is `30s`.
4343
*/

0 commit comments

Comments
 (0)