Skip to content

Commit 2fae2f7

Browse files
jmacdutpilla
andauthored
Console exporter for OTAP/OTLP logs (#1849)
Part of #1771. Part of #1736. Uses the new internal logging support to format OTLP logs data. This prints RESOURCE and SCOPE lines with ASCII or Unicode pipe structures to identify the OTLP hierarchy: ``` 2026-01-21T03:12:22.165Z RESOURCE v1.Resource: [fake_data_generator=v1] 2026-01-21T03:12:22.165Z │ SCOPE v1.InstrumentationScope: 2026-01-21T03:12:22.165Z │ ├─ INFO session.start: [session.id=00112233-4455-6677-8899-aabbccddeeff, session.previous_id=00112233-4455-6677-8899-aabbccddeeff] 2026-01-21T03:12:22.165Z │ ├─ INFO session.end: [session.id=00112233-4455-6677-8899-aabbccddeeff] 2026-01-21T03:12:22.165Z │ ├─ INFO device.app.lifecycle: [ios.app.state=active, android.app.state=created] 2026-01-21T03:12:22.165Z │ ├─ INFO rpc.message: [rpc.message.type=SENT, rpc.message.id=42, rpc.message.compressed_size=42, rpc.message.uncompressed_size=42] ``` --------- Co-authored-by: Utkarsh Umesan Pillai <66651184+utpilla@users.noreply.github.com>
1 parent 9ef8217 commit 2fae2f7

File tree

11 files changed

+798
-103
lines changed

11 files changed

+798
-103
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Shows the batch processor.
2+
settings:
3+
default_pipeline_ctrl_msg_channel_size: 100
4+
default_node_ctrl_msg_channel_size: 100
5+
default_pdata_channel_size: 100
6+
7+
nodes:
8+
receiver:
9+
kind: receiver
10+
plugin_urn: "urn:otel:otap:fake_data_generator:receiver"
11+
out_ports:
12+
out_port:
13+
destinations:
14+
- batch
15+
dispatch_strategy: round_robin
16+
config:
17+
traffic_config:
18+
max_signal_count: 10000
19+
max_batch_size: 100
20+
signals_per_second: 100
21+
log_weight: 100
22+
registry_path: https://github.com/open-telemetry/semantic-conventions.git[model]
23+
batch:
24+
kind: processor
25+
plugin_urn: "urn:otel:batch:processor"
26+
out_ports:
27+
out_port:
28+
destinations:
29+
- console
30+
dispatch_strategy: round_robin
31+
config:
32+
otap:
33+
min_size: 1000
34+
sizer: items
35+
format: otap
36+
flush_timeout: 3s
37+
console:
38+
kind: exporter
39+
plugin_urn: "urn:otel:console:exporter"
40+
config: {}

0 commit comments

Comments
 (0)