sentry-python-sdk

Warn

Audited by Runlayer on Mar 12, 2026

Risk Level: MEDIUM
Scan Summary
Max Score
81%
Files
8
Flagged
7
Chunks
11
Flagged Files (7)
sentry-python-sdk/references/logging.mdMEDIUM
81.1%

Malicious tool definition detected

sentry-python-sdk/SKILL.mdMEDIUM
77.8%

Prompt Injection

Privilege Escalation

Resource Abuse

Supply Chain Compromise

sentry-python-sdk/references/metrics.mdMEDIUM
76.1%

Malicious tool definition detected

## Metric Types | Type | API | Use for | |------|-----|---------| | Counter | `metrics.count()` | Event occurrences, request counts | | Distribution | `metrics.distribution()` | Latencies, sizes — supports p50/p90/p95/p99 | | Gauge | `metrics.gauge()` | Current values (min, max, avg, sum, count — no percentiles) | ## Configuration ```python import sentry_sdk sentry_sdk.init( dsn="https://<key>@<org>.ingest.sentry.io/<project>", # No extra flag — metrics are on by default ) ``` Optional `before_s

sentry-python-sdk/references/ai-monitoring.mdLOW
74.7%

Tool passed security scan

Malicious tool definition detected

Description: or `LiteLLMIntegration` | ## Troubleshooting | Issue | Solution | |-------|----------| | No AI spans appearing | Verify `traces_sample_rate > 0`; wrap calls in a transaction | | Prompts not captured | Set `send_default_pii=True` and verify `include_prompts=True` (default) | | LiteLLM not tracked | LiteLLM is NOT auto-enabled — add `LiteLLMIntegration` to `integrations=[]` explicitly | | Token counts missing for OpenAI streaming | Install `tiktoken>=0.3.0` and set `tiktoken_encoding_

sentry-python-sdk/references/tracing.mdLOW
68.0%

Tool passed security scan

sentry-python-sdk/references/error-monitoring.mdLOW
63.4%

Tool passed security scan

sentry-python-sdk/references/crons.mdLOW
59.8%

Tool passed security scan

Passed Files (1)Click to expand
sentry-python-sdk/references/profiling.mdOK
47.4%

Tool passed security scan

Audit Metadata
Max File Score
81%
Classification
KNOWN_SERVER_PARTIAL_KNOWN
Files Scanned
8
Files Flagged
7
Chunks Analyzed
11
Analyzed
Mar 12, 2026, 08:36 PM
Security Audit — runlayer — sentry-python-sdk