-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite contributing to assume little-to-no-prior knowledge of go. Completes #4351
- Loading branch information
1 parent
bdcadc9
commit 3b48ae5
Showing
4 changed files
with
98 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Observability | ||
|
||
## Tracing | ||
|
||
`azd` supports logging trace information to either a file or an OpenTelemetry compatible HTTP endpoint. The | ||
`--trace-log-file` can be used to write a JSON file containing all the spans for an command execution. Also, | ||
`--trace-log-url` can be used to provide an endpoint to send spans using the OTLP HTTP protocol. | ||
|
||
You can use the Jaeger all in one docker image to run Jaeger locally to collect and inspect traces: | ||
|
||
```bash | ||
$ docker run -d --name jaeger \ | ||
-e COLLECTOR_OTLP_ENABLED=true \ | ||
-e JAEGER_DISABLED=true \ | ||
-p 16686:16686 \ | ||
-p 4318:4318 \ | ||
jaegertracing/all-in-one | ||
``` | ||
|
||
And then pass `--trace-log-url localhost` to a command and view the results in the Jaeger UI served at | ||
[http://localhost:16686/search](http://localhost:16686/search) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters