File tree 1 file changed +4
-4
lines changed
content/en/docs/instrumentation/python
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ opentelemetry-instrument \
103
103
--traces_exporter console \
104
104
--metrics_exporter console \
105
105
--logs_exporter console \
106
- flask run
106
+ flask run -p 8080
107
107
```
108
108
109
109
Open < http://localhost:8080/rolldice > in your web browser and reload the page a
@@ -299,7 +299,7 @@ Now run the app again:
299
299
opentelemetry-instrument \
300
300
--traces_exporter console \
301
301
--metrics_exporter console \
302
- flask run
302
+ flask run -p 8080
303
303
```
304
304
305
305
When you send a request to the server, you'll see two spans in the trace emitted
@@ -433,7 +433,7 @@ Now run the app again:
433
433
opentelemetry-instrument \
434
434
--traces_exporter console \
435
435
--metrics_exporter console \
436
- flask run
436
+ flask run -p 8080
437
437
```
438
438
439
439
When you send a request to the server, you'll see the roll counter metric
@@ -600,7 +600,7 @@ and default to OTLP export when it's run next.
600
600
Run the application like before, but don't export to the console:
601
601
602
602
```
603
- opentelemetry-instrument flask run
603
+ opentelemetry-instrument flask run -p 8080
604
604
```
605
605
606
606
By default, ` opentelemetry-instrument ` exports traces and metrics over OTLP/gRPC
You can’t perform that action at this time.
0 commit comments