Skip to content

Commit 81341d5

Browse files
committed
Update 01-otel-integration.qmd
1 parent 596e9a7 commit 81341d5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

user_guide/09-integrations/01-otel-integration.qmd

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ are perfect for exploration: they capture every metric, span, and log record in
169169
can print them without running a collector.
170170

171171
```{python}
172+
#| eval: false
172173
import polars as pl
173174
import pointblank as pb
174175
from pointblank.integrations.otel import OTelExporter
@@ -204,6 +205,7 @@ negative amount, a zero amount, and a missing customer name), validate it, and t
204205
results.
205206

206207
```{python}
208+
#| eval: false
207209
df = pl.DataFrame(
208210
{
209211
"order_id": [101, 102, 103, 104, 105],
@@ -232,6 +234,7 @@ The report shows two steps with failures. Now we create an `OTelExporter` with a
232234
enabled and export the validation results.
233235

234236
```{python}
237+
#| eval: false
235238
otel = OTelExporter(
236239
meter_provider=meter_provider,
237240
tracer_provider=tracer_provider,
@@ -253,6 +256,7 @@ The metric reader holds all counters, gauges, and histograms that were recorded.
253256
through them to see every instrument and its current value.
254257

255258
```{python}
259+
#| eval: false
256260
metrics_data = metric_reader.get_metrics_data()
257261
258262
for resource_metrics in metrics_data.resource_metrics:
@@ -272,6 +276,7 @@ that would appear in Prometheus, Datadog, or any OTel-compatible metrics backend
272276
Each `interrogate()` call produces a root span with one child per validation step:
273277

274278
```{python}
279+
#| eval: false
275280
spans = span_exporter.get_finished_spans()
276281
277282
for span in spans:
@@ -294,6 +299,7 @@ Log records are emitted for each validation step that exceeds a threshold. The s
294299
record corresponds to the highest threshold level breached by that step.
295300

296301
```{python}
302+
#| eval: false
297303
logs = log_exporter.get_finished_logs()
298304
299305
for log in logs:
@@ -309,6 +315,7 @@ Elasticsearch, or CloudWatch) where you can search and alert on them.
309315

310316
```{python}
311317
#| echo: false
318+
#| eval: false
312319
meter_provider.shutdown()
313320
tracer_provider.shutdown()
314321
logger_provider.shutdown()

0 commit comments

Comments
 (0)