Skip to content

Commit a6b4852

Browse files
committed
Using title in code blocks instead of tabs.
1 parent e0a9257 commit a6b4852

File tree

19 files changed

+38
-336
lines changed

19 files changed

+38
-336
lines changed

content/en/ninja-workshops/10-advanced-otel/1-agent/1-2-test-agent.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,14 @@ This file will allow us to test how the OpenTelemetry Collector processes and se
5252
{{% /tab %}}
5353
{{% /tabs %}}
5454

55-
{{% tabs %}}
56-
{{% tab title="Updated Directory Structure" %}}
57-
58-
```text
55+
```text { title="Updated Directory Structure" }
5956
[WORKSHOP]
6057
├── 1-agent # Module directory
6158
│   └── agent.yaml # OpenTelemetry Collector configuration file
6259
│   └── trace.json # Sample trace data
6360
└── otelcol # OpenTelemetry Collector binary
6461
```
6562

66-
{{% /tab %}}
67-
{{% /tabs %}}
68-
6963
**Send a test span**: Run the following command to send a **span** to the agent:
7064

7165
{{% tabs %}}

content/en/ninja-workshops/10-advanced-otel/1-agent/1-4-metadata/1-4-1-test-metadata.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@ Resource attributes:
3939

4040
**Verify `agent.out`**: Validate the `agent.out` file contains the updated data:
4141

42-
{{% tabs %}}
43-
{{% tab title="Updated Directory Structure" %}}
44-
45-
```text
42+
```text { title="Updated Directory Structure" }
4643
[WORKSHOP]
4744
├── 1-agent # Module directory
4845
│   └── agent.out # OTLP/Json output created by the File Exporter
@@ -51,9 +48,6 @@ Resource attributes:
5148
└── otelcol # OpenTelemetry Collector binary
5249
```
5350

54-
{{% /tab %}}
55-
{{% /tabs %}}
56-
5751
**Verify that metadata is added to spans in the new `agent.out` file**:
5852

5953
1. Check for the existence of the`otelcol.service.mode` attribute in the `resourceSpans` section and that it has a value of `agent`.

content/en/ninja-workshops/10-advanced-otel/2-gateway/_index.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,7 @@ service: # Services configured for this Collector
8787
8888
{{% /notice %}}
8989
90-
{{% tab title="Updated Directory Structure" %}}
91-
92-
```text
90+
```text { title="Updated Directory Structure" }
9391
[WORKSHOP]
9492
├── 1-agent # Module directory
9593
├── 2-gateway # Module directory
@@ -98,5 +96,3 @@ service: # Services configured for this Collector
9896
│   └── trace.json # Sample trace data
9997
└── otelcol # OpenTelemetry Collector binary
10098
```
101-
102-
{{% /tab %}}

content/en/ninja-workshops/10-advanced-otel/3-filelog/3-1-create-loggen.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,7 @@ while ($true) {
153153
{{% /tab %}}
154154
{{% /tabs %}}
155155

156-
{{% tabs %}}
157-
{{% tab title="Updated Directory Structure" %}}
158-
159-
```text
156+
```text { title="Updated Directory Structure" }
160157
WORKSHOP
161158
├── 1-agent
162159
├── 2-gateway
@@ -168,9 +165,6 @@ WORKSHOP
168165
└── otelcol # OpenTelemetry Collector binary
169166
```
170167

171-
{{% /tab %}}
172-
{{% /tabs %}}
173-
174168
For **macOS/Linux** make sure the script is executable:
175169

176170
```bash

content/en/ninja-workshops/10-advanced-otel/3-filelog/3-2-start-loggen.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ weight: 2
88

99
Start the appropriate script for your system. The script will begin writing lines to a file named `quotes.log`:
1010

11-
```sh
11+
```sh { title="Log Generator" }
1212
./log-gen.sh
1313
```
1414

15-
```text
15+
```text { title="Log Generator Output" }
1616
Writing logs to quotes.log. Press Ctrl+C to stop.
1717
```
1818

content/en/ninja-workshops/10-advanced-otel/3-filelog/3-4-test-filelog.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,7 @@ Flags: 0
7171

7272
At this point, your directory structure will appear as follows:
7373

74-
{{% tabs %}}
75-
{{% tab title="Updated Directory Structure" %}}
76-
77-
```text
74+
```text { title="Updated Directory Structure" }
7875
WORKSHOP
7976
├── 1-agent
8077
├── 2-gateway
@@ -89,9 +86,6 @@ WORKSHOP
8986
└── otelcol # OpenTelemetry Collector binary
9087
```
9188

92-
{{% /tab %}}
93-
{{% /tabs %}}
94-
9589
**Examine a log line in `gateway-log.out`**: Compare a log line with the snippet below. It is a preview showing the beginning and a single log line; your actual output will contain many, many more:
9690

9791
{{% tabs %}}

content/en/ninja-workshops/10-advanced-otel/3-filelog/_index.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ For this part of the workshop, there is script that will generate log lines in a
2121

2222
Your updated directory structure will now look like this:
2323

24-
{{% tabs %}}
25-
{{% tab title="Updated Directory Structure" %}}
26-
27-
```text
24+
```text { title="Updated Directory Structure" }
2825
WORKSHOP
2926
├── 1-agent
3027
├── 2-gateway
@@ -35,6 +32,4 @@ WORKSHOP
3532
└── otelcol # OpenTelemetry binary
3633
```
3734

38-
{{% /tab %}}
39-
{{% /tabs %}}
4035
{{% /notice %}}

content/en/ninja-workshops/10-advanced-otel/4-building-resilience/4-2-test-environment.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ Next, we will configure our environment to be ready for testing the **File Stora
1010

1111
**Start the Gateway**: In the **Gateway** terminal window navigate to the `[WORKSHOP]/4-resilience` directory and run:
1212

13-
```sh
13+
```sh { title="Gateway" }
1414
../otelbin --config=gateway.yaml
1515
```
1616

1717
**Start the Agent**: In the **Agent** terminal window navigate to the `[WORKSHOP]/4-resilience` directory and run:
1818

19-
```sh
19+
```sh { title="Agent" }
2020
../otelbin --config=agent.yaml
2121
```
2222

2323
**Send a test trace**: In the **Test** terminal window navigate to the `[WORKSHOP]/4-resilience` directory and run:
2424

25-
```sh
25+
```sh { title="cURL command" }
2626
curl -X POST -i http://localhost:4318/v1/traces -H "Content-Type: application/json" -d "@trace.json"
2727
```
2828

content/en/ninja-workshops/10-advanced-otel/4-building-resilience/_index.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ For logs, there are plans to implement a more enterprise-ready solution in one o
2626

2727
Your updated directory structure will now look like this:
2828

29-
{{% tabs %}}
30-
{{% tab title="Updated Directory Structure" %}}
31-
32-
```text
29+
```text { title="Updated Directory Structure" }
3330
WORKSHOP
3431
├── 1-agent
3532
├── 2-gateway
@@ -42,7 +39,4 @@ WORKSHOP
4239
└── otelcol
4340
```
4441

45-
{{% /tab %}}
46-
{{% /tabs %}}
47-
4842
{{% /notice %}}

content/en/ninja-workshops/10-advanced-otel/5-dropping-spans/5-2-test-filter.md

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,11 @@ To test your configuration, you'll need to generate some trace data that include
1414
2. Copy and paste the following JSON into the `health.json` file.
1515
3. Note the span name is set to `{"name":"healthz"}` in the json.
1616

17-
{{% tabs %}}
18-
{{% tab title="health.json" %}}
19-
20-
```json
17+
```json { title="health.json" }
2118
{"resourceSpans":[{"resource":{"attributes":[{"key":"service.name","value":{"stringValue":"frontend"}}]},"scopeSpans":[{"scope":{"name":"healthz","version":"1.0.0","attributes":[{"key":"my.scope.attribute","value":{"stringValue":"some scope attribute"}}]},"spans":[{"traceId":"5B8EFFF798038103D269B633813FC60C","spanId":"EEE19B7EC3C1B174","parentSpanId":"EEE19B7EC3C1B173","name":"/_healthz","startTimeUnixNano":"1544712660000000000","endTimeUnixNano":"1544712661000000000","kind":2,"attributes":[]}]}]}]}
2219
```
2320

24-
{{% /tab %}}
25-
{{% /tabs %}}
26-
{{% tabs %}}
27-
{{% tab title="Updated Directory Structure" %}}
28-
29-
```text
21+
```text { title="Updated Directory Structure" }
3022
WORKSHOP
3123
├── 1-agent
3224
├── 2-gateway
@@ -42,30 +34,27 @@ WORKSHOP
4234
└── otelcol
4335
```
4436

45-
{{% /tabs %}}
46-
{{% /tab %}}
47-
4837
**Start the Gateway**: In the **Gateway** terminal window navigate to the `[WORKSHOP]/5-dropping-spans` directory and run:
4938

50-
```sh
39+
```sh { title="Gateway" }
5140
../otelbin --config=gateway.yaml
5241
```
5342

5443
**Start the Agent**: In the **Agent** terminal window navigate to the `[WORKSHOP]/5-dropping-spans` directory and run:
5544

56-
```sh
45+
```sh { title="Agent" }
5746
../otelbin --config=agent.yaml
5847
```
5948

6049
**Send the new `health.json` payload:** In the **Test** terminal window navigate to the `[WORKSHOP]/5-dropping-spans` directory and run the `curl` command below. (**Windows use `curl.exe`**).
6150

62-
```sh
51+
```sh { title="cURL command" }
6352
curl -X POST -i http://localhost:4318/v1/traces -H "Content-Type: application/json" -d "@health.json"
6453
```
6554

6655
**Verify Agent Debug output shows the `healthz` span**: Confirm that the span `span` payload is sent, Check the agent’s debug output to see the span data like the snippet below:
6756

68-
```text
57+
```text { title="Debug Output" }
6958
<snip>
7059
Span #0
7160
Trace ID : 5b8efff798038103d269b633813fc60c

0 commit comments

Comments
 (0)