Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/guides/trace_and_monitor_crawlers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ In the following example, you can see the function `instrument_crawler` that con
{InstrumentCrawler}
</CodeBlock>

The `otel` extra doesn't instrument HTTP clients. To also trace requests sent by <ApiLink to="class/HttpxHttpClient">`HttpxHttpClient`</ApiLink>, install the httpx instrumentation:

```bash
python -m pip install 'opentelemetry-instrumentation-httpx>=0.65b0'
```

Then call `HTTPX2ClientInstrumentor().instrument()` from `opentelemetry.instrumentation.httpx` next to the crawler instrumentation. `HttpxHttpClient` runs on the `httpx2` package, so `HTTPXClientInstrumentor` from the same module records no spans for it.

## Analyze the results

In the Jaeger UI, you can search for different traces, apply filtering, compare traces, view their detailed attributes, view timing details, and more. For the detailed description of the tool's capabilities, please refer to the [Jaeger documentation](https://www.jaegertracing.io/docs/1.47/deployment/frontend-ui/#trace-page).
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ otel = [
"opentelemetry-api>=1.34.1",
"opentelemetry-distro[otlp]>=0.54",
"opentelemetry-instrumentation>=0.54",
"opentelemetry-instrumentation-httpx>=0.54",
"opentelemetry-sdk>=1.34.1",
"opentelemetry-semantic-conventions>=0.54",
"wrapt>=1.17.0",
Expand Down
48 changes: 10 additions & 38 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading