Skip to content

Commit 3d71fdd

Browse files
committed
Unify names of tracing-* examples
Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent 1050b1b commit 3d71fdd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/hyperlight-metrics-logs-and-traces.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,18 @@ $env:RUST_LOG='none,hyperlight_host=info,tracing=info'; cargo run --example trac
6262

6363
### Using OTLP exporter and Jaeger
6464

65-
In the [examples/otlp_tracing](../src/hyperlight_host/examples/otlp_tracing) directory, there is an example that shows how to capture and send trace and log information to an otlp_collector using the opentelemetry_otlp crate. With this example the following commands can be used to set the verbosity of the trace output to `INFO` and run the example to generate trace data:
65+
In the [examples/tracing-otlp](../src/hyperlight_host/examples/tracing-otlp) directory, there is an example that shows how to capture and send trace and log information to an otlp_collector using the opentelemetry_otlp crate. With this example the following commands can be used to set the verbosity of the trace output to `INFO` and run the example to generate trace data:
6666

6767
#### Linux
6868

6969
```bash
70-
RUST_LOG='none,hyperlight_host=info,tracing=info' cargo run --example otlp_tracing
70+
RUST_LOG='none,hyperlight_host=info,tracing=info' cargo run --example tracing-otlp
7171
```
7272

7373
#### Windows
7474

7575
```powershell
76-
$env:RUST_LOG='none,hyperlight_host=info,tracing=info';cargo run --example otlp_tracing
76+
$env:RUST_LOG='none,hyperlight_host=info,tracing=info';cargo run --example tracing-otlp
7777
```
7878

7979
The sample will run and generate trace data until any key is pressed.
File renamed without changes.

src/hyperlight_host/examples/chrome-tracing/main.rs renamed to src/hyperlight_host/examples/tracing-chrome/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use hyperlight_testing::simple_guest_as_string;
2323
use tracing_chrome::ChromeLayerBuilder;
2424
use tracing_subscriber::prelude::*;
2525

26-
// This example can be run with `cargo run --package hyperlight_host --example chrome-tracing --release`
26+
// This example can be run with `cargo run --package hyperlight_host --example tracing-chrome --release`
2727
fn main() -> Result<()> {
2828
// set up tracer
2929
let (chrome_layer, _guard) = ChromeLayerBuilder::new().build();

0 commit comments

Comments
 (0)