Skip to content

Commit 414308f

Browse files
[chore] [exporter/debug] docs: update example output after changes in telemetry (#12882)
Updates example output from the exporter after changes to collector telemetry made in `v0.120.0` via #12259.
1 parent 78663f9 commit 414308f

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

exporter/debugexporter/README.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ With `verbosity: basic`, the exporter outputs a single-line summary of received
6060
Here's an example output:
6161

6262
```console
63-
2023-11-10T22:49:03.510-0600 info TracesExporter {"kind": "exporter", "data_type": "traces", "name": "debug", "resource spans": 1, "spans": 2}
63+
2025-04-17T10:40:44.559+0200 info Traces {"otelcol.component.id": "debug/basic", "otelcol.component.kind": "Exporter", "otelcol.signal": "traces", "resource spans": 1, "spans": 2}
6464
```
6565

6666
### Normal verbosity
@@ -72,10 +72,10 @@ For example, logs with multiline body will be output as multiple lines.
7272
Here's an example output:
7373

7474
```console
75-
2024-06-24T15:18:58.559+0200 info TracesExporter {"kind": "exporter", "data_type": "traces", "name": "debug", "resource spans": 1, "spans": 2}
76-
2024-06-24T15:18:58.559+0200 info okey-dokey-0 4bdc558f0f0650e3ccaac8f3ae133954 8b69459f015c164b net.peer.ip=1.2.3.4 peer.service=telemetrygen-client
77-
lets-go 4bdc558f0f0650e3ccaac8f3ae133954 8820ee5366817639 net.peer.ip=1.2.3.4 peer.service=telemetrygen-server
78-
{"kind": "exporter", "data_type": "traces", "name": "debug"}
75+
2025-04-17T10:40:44.560+0200 info Traces {"otelcol.component.id": "debug/normal", "otelcol.component.kind": "Exporter", "otelcol.signal": "traces", "resource spans": 1, "spans": 2}
76+
2025-04-17T10:40:44.560+0200 info okey-dokey-0 fafdac970271dd2ce89de2442c0518c7 3875f436d989d0e5 net.sock.peer.addr=1.2.3.4 peer.service=telemetrygen-client
77+
lets-go fafdac970271dd2ce89de2442c0518c7 d98de4cb8e2a0ad6 net.sock.peer.addr=1.2.3.4 peer.service=telemetrygen-server
78+
{"otelcol.component.id": "debug/normal", "otelcol.component.kind": "Exporter", "otelcol.signal": "traces"}
7979
```
8080

8181
### Detailed verbosity
@@ -85,41 +85,41 @@ With `verbosity: detailed`, the exporter outputs all details of every telemetry
8585
Here's an example output:
8686

8787
```console
88-
2023-11-10T22:49:03.510-0600 info TracesExporter {"kind": "exporter", "data_type": "traces", "name": "debug", "resource spans": 1, "spans": 2}
89-
2023-11-10T22:49:03.510-0600 info ResourceSpans #0
90-
Resource SchemaURL: https://opentelemetry.io/schemas/1.4.0
88+
2025-04-17T10:40:44.560+0200 info Traces {"otelcol.component.id": "debug/detailed", "otelcol.component.kind": "Exporter", "otelcol.signal": "traces", "resource spans": 1, "spans": 2}
89+
2025-04-17T10:40:44.560+0200 info ResourceSpans #0
90+
Resource SchemaURL: https://opentelemetry.io/schemas/1.25.0
9191
Resource attributes:
9292
-> service.name: Str(telemetrygen)
9393
ScopeSpans #0
94-
ScopeSpans SchemaURL:
95-
InstrumentationScope telemetrygen
94+
ScopeSpans SchemaURL:
95+
InstrumentationScope telemetrygen
9696
Span #0
97-
Trace ID : 3bde5d3ee82303571bba6e1136781fe4
98-
Parent ID : 5e9dcf9bac4acc1f
99-
ID : 2cf3ef2899aba35c
100-
Name : okey-dokey
97+
Trace ID : fafdac970271dd2ce89de2442c0518c7
98+
Parent ID : d98de4cb8e2a0ad6
99+
ID : 3875f436d989d0e5
100+
Name : okey-dokey-0
101101
Kind : Server
102-
Start time : 2023-11-11 04:49:03.509369393 +0000 UTC
103-
End time : 2023-11-11 04:49:03.50949377 +0000 UTC
102+
Start time : 2025-04-17 08:40:44.555461596 +0000 UTC
103+
End time : 2025-04-17 08:40:44.555584596 +0000 UTC
104104
Status code : Unset
105-
Status message :
105+
Status message :
106106
Attributes:
107-
-> net.peer.ip: Str(1.2.3.4)
107+
-> net.sock.peer.addr: Str(1.2.3.4)
108108
-> peer.service: Str(telemetrygen-client)
109109
Span #1
110-
Trace ID : 3bde5d3ee82303571bba6e1136781fe4
111-
Parent ID :
112-
ID : 5e9dcf9bac4acc1f
110+
Trace ID : fafdac970271dd2ce89de2442c0518c7
111+
Parent ID :
112+
ID : d98de4cb8e2a0ad6
113113
Name : lets-go
114114
Kind : Client
115-
Start time : 2023-11-11 04:49:03.50935117 +0000 UTC
116-
End time : 2023-11-11 04:49:03.50949377 +0000 UTC
115+
Start time : 2025-04-17 08:40:44.555461596 +0000 UTC
116+
End time : 2025-04-17 08:40:44.555584596 +0000 UTC
117117
Status code : Unset
118-
Status message :
118+
Status message :
119119
Attributes:
120-
-> net.peer.ip: Str(1.2.3.4)
120+
-> net.sock.peer.addr: Str(1.2.3.4)
121121
-> peer.service: Str(telemetrygen-server)
122-
{"kind": "exporter", "data_type": "traces", "name": "debug"}
122+
{"otelcol.component.id": "debug/detailed", "otelcol.component.kind": "Exporter", "otelcol.signal": "traces"}
123123
```
124124

125125
## Using the collector's internal logger

0 commit comments

Comments
 (0)