Skip to content

Commit f81f442

Browse files
committed
qeoff changes on windows test
1 parent 50c1b29 commit f81f442

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

content/en/ninja-workshops/10-advanced-otel/10-agent-setup/1-initialtest.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ To improve organization during the workshop, consider customizing your terminal
1414

1515
Run the following command from the `1-agent` directory (ensure you’re using the correct OpenTelemetry Collector binary you downloaded):
1616

17-
```text
17+
```sh
1818
../otelcol --config=agent.yaml
1919
```
2020

21-
If everything is set up correctly, the first and last line of the output should read:
21+
In this workshop, we use `MacOS/Linux` commands by default. If you’re using Windows, adjust the commands as needed.
22+
23+
If everything is set up correctly, the first and last lines of the output should display:
2224

2325
```text
2426
2025/01/13T12:43:51 settings.go:478: Set config to [agent.yaml]

content/en/ninja-workshops/10-advanced-otel/10-agent-setup/3-metadata.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ weight: 3
55
---
66
### Setup
77

8-
So far, we’ve essentially exported a direct copy of the trace sent through the OpenTelemetry Collector. Now, let’s enhance the base trace by adding metadata using `processors`. This additional information can be valuable for troubleshooting and for enabling features like Related Content.
8+
So far, we’ve essentially exported a direct copy of the `span` sent through the OpenTelemetry Collector. Now, let’s enhance the base `span` by adding metadata using `processors`. This additional information can be valuable for troubleshooting and for enabling features like `Related Content`.
99

1010
{{% notice title="Exercise" style="green" icon="running" %}}
1111
We will enhance the data flowing through our pipelines by making the following changes to the `agent.yaml`:
@@ -122,6 +122,10 @@ A new `agent.out` file should be created:
122122

123123
{{% /tab %}}
124124

125+
{{% notice title="Tip" style="primary" icon="lightbulb" %}}
126+
Note: On `Windows`, attempting to read an open file can cause issues. To avoid this, make sure to stop the `agent` or the `gateway` before examining a file when instructed to do so.
127+
{{% /notice %}}
128+
125129
Check the newly created `agent.out` file. You should see a line written for the trace.
126130

127131
{{% tabs %}}

content/en/ninja-workshops/10-advanced-otel/20-gateway-setup/1-gateway-test.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ Open the `agent.yaml` we copied earlier in your editor, and configure a `otlphtt
4141
4242
- **Add a batch processor to the agent**: since the agent can send data from different sources, and benefit from retries, adding a Batch processor is useful too:
4343
44-
```yaml
44+
```yaml
4545
batch: # Processor Type
4646
# Array of metadata keys to batch data by
4747
metadata_keys: [X-SF-Token]
48-
```
48+
```
4949
5050
- **Update Pipelines**: replace the `file:` exporter with the `otlphttp` exporter in the `traces`, `metrics`, and `logs` pipelines.
5151

content/en/ninja-workshops/10-advanced-otel/80-routing/_index.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ WORKSHOP
2929
│ ├── gateway.yaml
3030
│ ├── log-gen.sh (or .ps1)
3131
│ ├── health.json
32-
│ ├── data.json
3332
│   └── trace.json
3433
└── otelcol
3534
```
@@ -131,10 +130,9 @@ Keep in mind that any existing processors have been removed from this pipeline.
131130
{{% /notice %}}
132131

133132
- **Create a trace for different Environments**
133+
To test your configuration, you’ll need to generate some trace data that includes a span named
134134

135-
Create a copy of your trace.json and name it security.json
136-
137-
open an editor and update the RespourceSpan atttribute deployment.environem4etn and set it to "security_applications". ( You can change the service.name attribute as well)
135+
Copy the following JSON and save to a file called security.json in the 8-routing directory:
138136

139137
{{% tabs %}}
140138
{{% tab title="Compacted JSON" %}}

0 commit comments

Comments
 (0)