Skip to content

Commit 3d10aec

Browse files
committed
docs: add a troubleshot section
1 parent 601fa89 commit 3d10aec

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ Then :
4141
- copy trace_id from log (or response header)
4242
- paste into Jaeger web UI
4343

44-
4544
## To release
4645

4746
Use the github workflow `release-plz`.

init-tracing-opentelemetry/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,21 @@ spec:
132132
# fieldPath: status.hostIP
133133
```
134134

135+
## Troubleshot why no trace?
136+
137+
- check you only have a single version of opentelemtry (could be part of your CI/build), use `cargo-deny` or `cargo tree`
138+
139+
```sh
140+
# Check only one version of opentelemetry_api should be used
141+
# else issue with setup of global (static variable)
142+
# check_single_version_opentelemtry:
143+
cargo tree -i opentelemetry_api
144+
```
145+
146+
- check the code of your exporter and the integration with `tracing` (as subscriber's layer)
147+
- check the environment variables of opentelemetry `OTEL_EXPORTER...` and `OTEL_TRACES_SAMPLER` (values are logged on target `otel::setup` )
148+
- check that log target `otel::tracing` enable log level `trace` (or `info` if you use `tracing_level_info` feature) to generate span to send to opentelemetry collector.
149+
135150
## Changelog - History
136151
137152
[CHANGELOG.md](https://github.com/davidB/tracing-opentelemetry-instrumentation-sdk/blob/main/CHANGELOG.md)

0 commit comments

Comments
 (0)