AI Slop Code RIsk Monitor

traceloop/openllmetry

Open-source observability for your GenAI or LLM application, based on OpenTelemetry

16.8 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for traceloop/openllmetry, a Python project with 7,481 GitHub stars. SynthScan examined 375,187 lines of code across 1630 source files, recording 4206 pattern matches distributed across 24 syntactic categories. The legacy adjusted pattern signal is 16.8 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

16.8
Adjusted Signal
16.8
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
7.5K
Stars
Python
Language
375.2K
Lines of Code
1.6K
Files
4.2K
Pattern Hits
2026-10-12
Scan Date
0.13
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 31.0/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 2847 finding(s).

Hallucinated Dependency & Supply Chain Risk 2.3/100 · LOW

Are imports declared and package/API names verified? 130 finding(s).

Agent Over-Engineering Ratio 52.4/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 3695 finding(s).

PR Review Velocity Impact 58.5/100 · HIGH

Which changes need focused human review? 4206 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 212MEDIUM 666LOW 3328

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 4206 distinct pattern matches across 24 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers2453 hits · 2219 pts
SeverityFileLineSnippetContext
LOWscripts/codegen/generate_evaluator_models.py18def extract_definitions_and_mappings(swagger_path: str) -> tuple[dict, dict]:CODE
LOW…/sample-app/sample_app/vertex_gemini_vision_example.py19def describe_image_from_local_path(image_path: str) -> str:CODE
LOWpackages/sample-app/sample_app/writer_example.py61def handle_streaming_response(response_stream):CODE
LOWpackages/sample-app/sample_app/chroma_app.py44def build_prompt_with_context(claim, context):CODE
LOW…es/sample-app/sample_app/google_genai_image_example.py27 def describe_image_from_local_path(image_path: str) -> str:CODE
LOW⚡packages/sample-app/sample_app/dataset_example.py62def dataset_from_dataframe_example(slug: str) -> Optional[Dataset]:CODE
LOW⚡packages/sample-app/sample_app/dataset_example.py256def get_dataset_by_version_example(slug: str, version: str):CODE
LOW⚡packages/sample-app/sample_app/dataset_example.py268def get_dataset_by_slug_example(slug: str):CODE
LOW⚡packages/sample-app/sample_app/dataset_example.py288def create_customer_support_dataset(slug: str) -> Optional[Dataset]:CODE
LOW⚡packages/sample-app/sample_app/dataset_example.py365def create_translation_dataset(slug: str) -> Optional[Dataset]:CODE
LOW…s/sample-app/sample_app/dataset_attachments_example.py29def example_external_attachments():CODE
LOW…s/sample-app/sample_app/dataset_attachments_example.py186def example_in_memory_attachments():CODE
LOW…s/sample-app/sample_app/dataset_attachments_example.py241def example_mixed_attachments():CODE
LOW…mple-app/sample_app/chroma_sentence_transformer_app.py58def build_prompt_with_context(claim, context):CODE
LOWpackages/sample-app/sample_app/openai_agents_example.py258async def plan_and_apply_recipe_modifications(CODE
LOW…kages/sample-app/sample_app/openai_realtime_example.py31async def realtime_text_conversation():CODE
LOW…kages/sample-app/sample_app/openai_realtime_example.py100async def realtime_multi_turn_conversation():CODE
LOW…app/sample_app/guardrails/traceloop_evaluator_guard.py36async def generate_customer_response() -> str:CODE
LOW…ple-app/sample_app/guardrails/custom_function_guard.py36async def simple_lambda_guard_example():CODE
LOW…ple-app/sample_app/guardrails/custom_function_guard.py94async def custom_function_guard_example():CODE
LOW⚡…le-app/sample_app/guardrails/custom_evaluator_guard.py78async def medical_advice_quality_check():CODE
LOW⚡…le-app/sample_app/guardrails/custom_evaluator_guard.py87async def diagnosis_request_blocker():CODE
LOW…le-app/sample_app/guardrails/custom_evaluator_guard.py99 async def attempt_diagnosis_request() -> str:CODE
LOW…e-app/sample_app/guardrails/multiple_guards_example.py55async def multiple_lambda_guards_example():CODE
LOW…e-app/sample_app/guardrails/multiple_guards_example.py109async def generate_customer_response() -> str:CODE
LOW…e-app/sample_app/guardrails/multiple_guards_example.py128async def mixed_guard_types_example():CODE
LOW…e-app/sample_app/guardrails/multiple_guards_example.py168 async def generate_problematic_content() -> str:CODE
LOW…e-app/sample_app/guardrails/multiple_guards_example.py198async def sequential_guards_example():CODE
LOW…s/sample-app/sample_app/agents/travel_agent_example.py439async def calculate_travel_distance(CODE
LOW…es/sample-app/sample_app/experiment/medical_prompts.py6def provide_medical_info_prompt(question: str) -> str:CODE
LOW…es/sample-app/sample_app/experiment/medical_prompts.py25def refuse_medical_advice_prompt(question: str) -> str:CODE
LOW…sample-app/sample_app/experiment/experiment_example.py31async def medical_task_refuse_advice(row):CODE
LOW…sample-app/sample_app/experiment/experiment_example.py40async def medical_task_provide_info(row):CODE
LOW…e-app/sample_app/experiment/run_research_experiment.py24async def generate_research_response(question: str) -> str:CODE
LOW…ple_app/experiment/made_by_traceloop/compliance_exp.py53async def run_content_compliance_experiment():CODE
LOW…sample_app/experiment/made_by_traceloop/quality_exp.py67async def run_advanced_quality_experiment():CODE
LOW…le_app/experiment/made_by_traceloop/correctness_exp.py59async def run_correctness_experiment():CODE
LOW…ple_app/experiment/made_by_traceloop/formatting_exp.py24async def generate_structured_output(prompt: str, output_format: str) -> str:CODE
LOW…ple_app/experiment/made_by_traceloop/formatting_exp.py73async def run_formatting_experiment():CODE
LOW…e_app/experiment/made_by_traceloop/travel_agent_exp.py71async def run_travel_agent_experiment():CODE
LOW…/experiment/made_by_traceloop/agent_tool_trajectory.py33async def run_agent_tool_trajectory_experiment():CODE
LOW…sonx/opentelemetry/instrumentation/watsonx/__init__.py159def set_model_input_attributes(span, instance):CODE
LOW…sonx/opentelemetry/instrumentation/watsonx/__init__.py205def _set_stream_response_attributes(span, stream_response):CODE
LOW…sonx/opentelemetry/instrumentation/watsonx/__init__.py215def _set_model_stream_response_attributes(span, stream_response):CODE
LOW…sonx/opentelemetry/instrumentation/watsonx/__init__.py241def _set_completion_content_attributes(CODE
LOW…sonx/opentelemetry/instrumentation/watsonx/__init__.py327def set_model_response_attributes(CODE
LOW…sonx/opentelemetry/instrumentation/watsonx/__init__.py374def _build_and_set_stream_response(CODE
LOW…sonx/opentelemetry/instrumentation/watsonx/__init__.py450def _metric_shared_attributes(response_model: str, is_streaming: bool = False):CODE
LOW…sonx/opentelemetry/instrumentation/watsonx/__init__.py675 def instrumentation_dependencies(self) -> Collection[str]:CODE
LOW…etry-instrumentation-watsonx/tests/metrics/conftest.py20def metrics_test_context_legacy():CODE
LOW…etry-instrumentation-watsonx/tests/metrics/conftest.py56def metrics_test_context_with_content(logger_provider):CODE
LOW…etry-instrumentation-watsonx/tests/metrics/conftest.py83def metrics_test_context_with_no_content(logger_provider):CODE
LOW…entation-watsonx/tests/metrics/test_watsonx_metrics.py76def test_generate_stream_metrics(CODE
LOW…-instrumentation-watsonx/tests/traces/test_generate.py40def test_generate_with_events_with_content(CODE
LOW…-instrumentation-watsonx/tests/traces/test_generate.py76def test_generate_with_with_events_no_content(CODE
LOW…-instrumentation-watsonx/tests/traces/test_generate.py107def test_generate_text_stream(exporter_legacy, watson_ai_model, log_exporter):CODE
LOW…-instrumentation-watsonx/tests/traces/test_generate.py140def test_generate_text_stream_with_events_with_content(CODE
LOW…-instrumentation-watsonx/tests/traces/test_generate.py181def test_generate_text_stream_with_events_with_no_content(CODE
LOW…rock/opentelemetry/instrumentation/bedrock/__init__.py221def _instrumented_model_invoke(fn, tracer, metric_params, event_logger):CODE
LOW…rock/opentelemetry/instrumentation/bedrock/__init__.py251def _instrumented_model_invoke_with_response_stream(CODE
2393 more matches not shown…
Decorative Section Separators461 hits · 1683 pts
SeverityFileLineSnippetContext
MEDIUMpackages/sample-app/sample_app/sample_handoff_app.py33# ============================================================================COMMENT
MEDIUMpackages/sample-app/sample_app/sample_handoff_app.py35# ============================================================================COMMENT
MEDIUMpackages/sample-app/sample_app/sample_handoff_app.py96# ============================================================================STRING
MEDIUMpackages/sample-app/sample_app/sample_handoff_app.py98# ============================================================================STRING
MEDIUM…app/sample_app/guardrails/traceloop_evaluator_guard.py34# ==============================COMMENT
MEDIUM…app/sample_app/guardrails/traceloop_evaluator_guard.py70# ===================================COMMENT
MEDIUM…ple-app/sample_app/guardrails/custom_function_guard.py34# ==============================COMMENT
MEDIUM…ple-app/sample_app/guardrails/custom_function_guard.py64# ==================================================COMMENT
MEDIUM…ple-app/sample_app/guardrails/custom_function_guard.py122# ===================================COMMENT
MEDIUM…ple-app/sample_app/guardrails/custom_function_guard.py158# ============================================COMMENT
MEDIUM…le-app/sample_app/guardrails/custom_evaluator_guard.py44# ======================================================================COMMENT
MEDIUM⚡…le-app/sample_app/guardrails/custom_evaluator_guard.py85# =================================================COMMENT
MEDIUM…e-app/sample_app/guardrails/multiple_guards_example.py39# ============================================COMMENT
MEDIUM…e-app/sample_app/guardrails/multiple_guards_example.py90# ==========================================================COMMENT
MEDIUM…e-app/sample_app/guardrails/multiple_guards_example.py157# ================================================COMMENT
MEDIUM…e-app/sample_app/guardrails/multiple_guards_example.py196# ============================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py135# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py138# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py329# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py331# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py420# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py422# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py498# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py505# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py564# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py566# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py608# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py610# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py710# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py712# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py750# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py752# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py786# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py793# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py851# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py853# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py895# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py897# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py1015# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py1017# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py1049# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py1051# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py1258# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py1264# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py1300# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py1302# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py1341# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py1348# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py1420# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py1427# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py1494# ===========================================================================COMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py1499# ===========================================================================COMMENT
MEDIUM…strumentation-bedrock/tests/test_semconv_compliance.py44# ---------------------------------------------------------------------------COMMENT
MEDIUM…strumentation-bedrock/tests/test_semconv_compliance.py46# ---------------------------------------------------------------------------COMMENT
MEDIUM…strumentation-bedrock/tests/test_semconv_compliance.py1119# ===========================================================================COMMENT
MEDIUM…strumentation-bedrock/tests/test_semconv_compliance.py1130# ===========================================================================COMMENT
MEDIUM…y-instrumentation-bedrock/tests/test_finish_reasons.py30# ---------------------------------------------------------------------------COMMENT
MEDIUM…y-instrumentation-bedrock/tests/test_finish_reasons.py32# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…y-instrumentation-bedrock/tests/test_finish_reasons.py53# ===========================================================================COMMENT
MEDIUM⚡…y-instrumentation-bedrock/tests/test_finish_reasons.py55# ===========================================================================COMMENT
401 more matches not shown…
Excessive Try-Catch Wrapping493 hits · 608 pts
SeverityFileLineSnippetContext
MEDIUMscripts/codegen/generate_evaluator_models.py452 print(f"Error: Swagger file not found at {swagger_path}")CODE
LOW…ages/sample-app/sample_app/mcp_dev_assistant_server.py89 except Exception as e:CODE
LOW…ages/sample-app/sample_app/mcp_dev_assistant_server.py124 except Exception as e:CODE
LOW…ages/sample-app/sample_app/mcp_dev_assistant_server.py154 except Exception as e:CODE
LOW…ages/sample-app/sample_app/mcp_dev_assistant_server.py196 except Exception as e:CODE
LOW…ages/sample-app/sample_app/mcp_dev_assistant_server.py264 except Exception:CODE
LOW…ages/sample-app/sample_app/mcp_dev_assistant_server.py276 except Exception as e:CODE
LOW…ages/sample-app/sample_app/mcp_dev_assistant_server.py331 except Exception:CODE
LOW…ages/sample-app/sample_app/mcp_dev_assistant_server.py336 except Exception as e:CODE
LOW…ages/sample-app/sample_app/mcp_dev_assistant_server.py364 except Exception as e:CODE
LOWpackages/sample-app/sample_app/litellm_completion.py163 except Exception as exc: # noqa: BLE001 - surface tool failures back to the modelCODE
LOW…ckages/sample-app/sample_app/mcp_dev_assistant_demo.py75 except Exception as e:CODE
LOW…ckages/sample-app/sample_app/mcp_dev_assistant_demo.py83 except Exception as e:CODE
LOW…ckages/sample-app/sample_app/mcp_dev_assistant_demo.py96 except Exception as e:CODE
LOW…ckages/sample-app/sample_app/mcp_dev_assistant_demo.py104 except Exception as e:CODE
LOW…ckages/sample-app/sample_app/mcp_dev_assistant_demo.py115 except Exception as e:CODE
LOW…ckages/sample-app/sample_app/mcp_dev_assistant_demo.py135 except Exception as e:CODE
LOW…ckages/sample-app/sample_app/mcp_dev_assistant_demo.py157 except Exception as e:CODE
LOW…es/sample-app/sample_app/google_genai_image_example.py73 except Exception as e:CODE
LOW⚡packages/sample-app/sample_app/llama_parse_app.py46 except Exception as e:CODE
LOW⚡packages/sample-app/sample_app/llama_parse_app.py55 except Exception as e:CODE
LOW⚡packages/sample-app/sample_app/llama_parse_app.py64 except Exception as e:CODE
LOW⚡packages/sample-app/sample_app/llama_parse_app.py74 except Exception as e:CODE
MEDIUMpackages/sample-app/sample_app/llama_parse_app.py68def main():CODE
MEDIUM⚡packages/sample-app/sample_app/dataset_example.py55 print(f"Error creating dataset from CSV: {e}")CODE
MEDIUM⚡packages/sample-app/sample_app/dataset_example.py252 print(f"Error publishing dataset: {e}")CODE
MEDIUM⚡packages/sample-app/sample_app/dataset_example.py265 print(f"Error getting dataset by version: {e}")CODE
MEDIUM⚡packages/sample-app/sample_app/dataset_example.py275 print(f"Error getting dataset by slug: {e}")CODE
MEDIUM⚡packages/sample-app/sample_app/dataset_example.py285 print(f"Error deleting dataset: {e}")CODE
MEDIUM⚡packages/sample-app/sample_app/dataset_example.py334 print(f"Error generating response for query '{query}': {e}")CODE
MEDIUM⚡packages/sample-app/sample_app/dataset_example.py361 print(f"Error creating customer support dataset: {e}")CODE
MEDIUMpackages/sample-app/sample_app/dataset_example.py88 print(f"Error creating dataset from DataFrame: {e}")CODE
MEDIUMpackages/sample-app/sample_app/dataset_example.py109 print(f"Error adding column: {e}")CODE
MEDIUMpackages/sample-app/sample_app/dataset_example.py128 print(f"Error updating column: {e}")CODE
MEDIUMpackages/sample-app/sample_app/dataset_example.py141 print(f"Error deleting column: {e}")CODE
MEDIUMpackages/sample-app/sample_app/dataset_example.py176 print(f"Error adding row: {e}")CODE
MEDIUMpackages/sample-app/sample_app/dataset_example.py212 print(f"Error updating row: {e}")CODE
MEDIUMpackages/sample-app/sample_app/dataset_example.py239 print(f"Error deleting row: {e}")CODE
MEDIUMpackages/sample-app/sample_app/dataset_example.py416 print(f"Error translating '{phrase}' to {lang}: {e}")CODE
MEDIUMpackages/sample-app/sample_app/dataset_example.py441 print(f"Error creating translation dataset: {e}")CODE
LOW⚡packages/sample-app/sample_app/dataset_example.py54 except Exception as e:CODE
LOW⚡packages/sample-app/sample_app/dataset_example.py251 except Exception as e:CODE
LOW⚡packages/sample-app/sample_app/dataset_example.py264 except Exception as e:CODE
LOW⚡packages/sample-app/sample_app/dataset_example.py274 except Exception as e:CODE
LOW⚡packages/sample-app/sample_app/dataset_example.py284 except Exception as e:CODE
LOW⚡packages/sample-app/sample_app/dataset_example.py333 except Exception as e:CODE
LOW⚡packages/sample-app/sample_app/dataset_example.py360 except Exception as e:CODE
LOWpackages/sample-app/sample_app/dataset_example.py87 except Exception as e:CODE
LOWpackages/sample-app/sample_app/dataset_example.py108 except Exception as e:CODE
LOWpackages/sample-app/sample_app/dataset_example.py127 except Exception as e:CODE
LOWpackages/sample-app/sample_app/dataset_example.py140 except Exception as e:CODE
LOWpackages/sample-app/sample_app/dataset_example.py175 except Exception as e:CODE
LOWpackages/sample-app/sample_app/dataset_example.py211 except Exception as e:CODE
LOWpackages/sample-app/sample_app/dataset_example.py238 except Exception as e:CODE
LOWpackages/sample-app/sample_app/dataset_example.py415 except Exception as e:CODE
LOWpackages/sample-app/sample_app/dataset_example.py440 except Exception as e:CODE
LOWpackages/sample-app/sample_app/mcp_sonnet_example.py120 except Exception as e:CODE
LOW…s/sample-app/sample_app/dataset_attachments_example.py350 except Exception as e:CODE
MEDIUM…ample-app/sample_app/openai_agents_realtime_example.py57 print("Error: openai-agents is required for this example")CODE
LOW…ample-app/sample_app/openai_agents_realtime_example.py231 except Exception as e:CODE
433 more matches not shown…
Empty Error Handlers98 hits · 490 pts
SeverityFileLineSnippetContext
HIGH…ages/sample-app/sample_app/mcp_dev_assistant_server.py264except Exception:CODE
HIGHpackages/sample-app/sample_app/litellm_example.py20except Exception:CODE
HIGH…rock/opentelemetry/instrumentation/bedrock/__init__.py1029except (json.JSONDecodeError, TypeError):CODE
HIGH…rock/opentelemetry/instrumentation/bedrock/__init__.py672except Exception: # noqa: BLE001 - never fail instrumentation on closeCODE
HIGH…rock/opentelemetry/instrumentation/bedrock/__init__.py947except Exception: # noqa: BLE001 — never fail in instrumentation cleanupCODE
HIGH…rock/opentelemetry/instrumentation/bedrock/__init__.py1256except (ImportError, ModuleNotFoundError):CODE
HIGH…rock/opentelemetry/instrumentation/bedrock/__init__.py1268except (ImportError, ModuleNotFoundError, AttributeError):CODE
HIGH…rock/opentelemetry/instrumentation/bedrock/__init__.py494except Exception: # noqa: BLE001 - don't mask original errorCODE
HIGH…ck/opentelemetry/instrumentation/bedrock/span_utils.py1056except (json.JSONDecodeError, TypeError):CODE
HIGH…ck/opentelemetry/instrumentation/bedrock/span_utils.py90except (json.JSONDecodeError, TypeError):CODE
HIGH…strumentation-bedrock/tests/test_semconv_compliance.py1475except (StopIteration, TypeError):CODE
HIGH…riter/opentelemetry/instrumentation/writer/__init__.py630except ModuleNotFoundError:CODE
HIGH…riter/opentelemetry/instrumentation/writer/__init__.py651except ModuleNotFoundError:CODE
HIGH…chain/opentelemetry/instrumentation/langchain/patch.py426except Exception:CODE
HIGH…in/opentelemetry/instrumentation/langchain/__init__.py451except Exception:CODE
HIGH…in/opentelemetry/instrumentation/langchain/__init__.py332except Exception:CODE
HIGH…in/opentelemetry/instrumentation/langchain/__init__.py336except Exception:CODE
HIGH…in/opentelemetry/instrumentation/langchain/__init__.py353except Exception:CODE
HIGH…in/opentelemetry/instrumentation/langchain/__init__.py357except Exception:CODE
HIGH…in/opentelemetry/instrumentation/langchain/__init__.py364except Exception:CODE
HIGH…in/opentelemetry/instrumentation/langchain/__init__.py368except Exception:CODE
HIGH…in/opentelemetry/instrumentation/langchain/__init__.py346except Exception:CODE
HIGH…/opentelemetry/instrumentation/langchain/span_utils.py143except (json.JSONDecodeError, TypeError):CODE
HIGH…/opentelemetry/instrumentation/langchain/span_utils.py355except (json.JSONDecodeError, TypeError):CODE
HIGH…elemetry/instrumentation/langchain/callback_handler.py309except Exception:CODE
HIGH…elemetry/instrumentation/langchain/callback_handler.py361except Exception:CODE
HIGH…elemetry/instrumentation/langchain/callback_handler.py661except Exception:CODE
HIGH…ntelemetry-instrumentation-langchain/tests/conftest.py162except (json.JSONDecodeError, UnicodeDecodeError, AttributeError):CODE
HIGH…etry-instrumentation-langchain/tests/test_langgraph.py786except ValueError:CODE
HIGH…llama/opentelemetry/instrumentation/ollama/__init__.py541except (ImportError, AttributeError):CODE
HIGH…llama/opentelemetry/instrumentation/ollama/__init__.py539except (AttributeError, ImportError):CODE
HIGH…llama/opentelemetry/instrumentation/ollama/__init__.py82except Exception:CODE
HIGH…ges/traceloop-sdk/traceloop/sdk/evaluator/evaluator.py326except Exception:CODE
HIGHpackages/traceloop-sdk/traceloop/sdk/decorators/base.py108except Exception:CODE
HIGHpackages/traceloop-sdk/traceloop/sdk/decorators/base.py232except TypeError:CODE
HIGHpackages/traceloop-sdk/traceloop/sdk/decorators/base.py246except TypeError:CODE
HIGHpackages/traceloop-sdk/traceloop/sdk/decorators/base.py46except ValueError:CODE
HIGH…ckages/traceloop-sdk/traceloop/sdk/experiment/utils.py136except (ValueError, IndexError):CODE
HIGHpackages/traceloop-sdk/traceloop/sdk/client/http.py127except Exception:CODE
HIGH…on-agno/opentelemetry/instrumentation/agno/__init__.py131except Exception:CODE
HIGH…on-agno/opentelemetry/instrumentation/agno/__init__.py136except Exception:CODE
HIGH…ellm/opentelemetry/instrumentation/litellm/__init__.py106except Exception:CODE
HIGH…ellm/opentelemetry/instrumentation/litellm/__init__.py918except (AttributeError, ModuleNotFoundError):CODE
HIGH…one/opentelemetry/instrumentation/pinecone/__init__.py252except (ModuleNotFoundError, ImportError):CODE
HIGH…one/opentelemetry/instrumentation/pinecone/__init__.py287except (ModuleNotFoundError, ImportError):CODE
HIGH…one/opentelemetry/instrumentation/pinecone/__init__.py250except (ImportError, AttributeError):CODE
HIGH…one/opentelemetry/instrumentation/pinecone/__init__.py285except (ImportError, AttributeError):CODE
HIGH…ai/opentelemetry/instrumentation/openai/v1/__init__.py69except (AttributeError, ModuleNotFoundError):CODE
HIGH…ai/opentelemetry/instrumentation/openai/v1/__init__.py385except ImportError:CODE
HIGH…emetry/instrumentation/openai/v1/responses_wrappers.py51except ImportError:CODE
HIGH…emetry/instrumentation/openai/v1/responses_wrappers.py56except ImportError:CODE
HIGH…emetry/instrumentation/openai/v1/responses_wrappers.py660except Exception:CODE
HIGH…emetry/instrumentation/openai/v1/responses_wrappers.py837except Exception:CODE
HIGH…pentelemetry/instrumentation/openai/shared/__init__.py212except Exception:CODE
HIGH…y-instrumentation-openai/tests/traces/test_realtime.py696except ConnectionError:CODE
HIGH…-instrumentation-openai/tests/traces/test_responses.py1341except threading.BrokenBarrierError:CODE
HIGH…n-openai/tests/traces/test_span_context_propagation.py37except Exception:CODE
HIGH…n-cohere/opentelemetry/instrumentation/cohere/utils.py56except Exception:CODE
HIGH…n-cohere/opentelemetry/instrumentation/cohere/utils.py68except Exception:CODE
HIGH…here/opentelemetry/instrumentation/cohere/streaming.py130except Exception:CODE
38 more matches not shown…
Cross-File Repetition92 hits · 460 pts
SeverityFileLineSnippetContext
HIGH…sonx/opentelemetry/instrumentation/watsonx/__init__.py0instruments and calls every async function defined in to_wrap.STRING
HIGH…rock/opentelemetry/instrumentation/bedrock/__init__.py0instruments and calls every async function defined in to_wrap.STRING
HIGH…a/opentelemetry/instrumentation/alephalpha/__init__.py0instruments and calls every async function defined in to_wrap.STRING
HIGH…iate/opentelemetry/instrumentation/weaviate/wrapper.py0instruments and calls every async function defined in to_wrap.STRING
HIGH…riter/opentelemetry/instrumentation/writer/__init__.py0instruments and calls every async function defined in to_wrap.STRING
HIGH…ai/opentelemetry/instrumentation/mistralai/__init__.py0instruments and calls every async function defined in to_wrap.STRING
HIGH…qdrant/opentelemetry/instrumentation/qdrant/wrapper.py0instruments and calls every async function defined in to_wrap.STRING
HIGH…llama/opentelemetry/instrumentation/ollama/__init__.py0instruments and calls every async function defined in to_wrap.STRING
HIGH…milvus/opentelemetry/instrumentation/milvus/wrapper.py0instruments and calls every async function defined in to_wrap.STRING
HIGH…xai/opentelemetry/instrumentation/vertexai/__init__.py0instruments and calls every async function defined in to_wrap.STRING
HIGH…ncedb/opentelemetry/instrumentation/lancedb/wrapper.py0instruments and calls every async function defined in to_wrap.STRING
HIGH…one/opentelemetry/instrumentation/pinecone/__init__.py0instruments and calls every async function defined in to_wrap.STRING
HIGH…ohere/opentelemetry/instrumentation/cohere/__init__.py0instruments and calls every async function defined in to_wrap.STRING
HIGH…te/opentelemetry/instrumentation/replicate/__init__.py0instruments and calls every async function defined in to_wrap.STRING
HIGH…on-groq/opentelemetry/instrumentation/groq/__init__.py0instruments and calls every async function defined in to_wrap.STRING
HIGH…emetry/instrumentation/google_generativeai/__init__.py0instruments and calls every async function defined in to_wrap.STRING
HIGH…madb/opentelemetry/instrumentation/chromadb/wrapper.py0instruments and calls every async function defined in to_wrap.STRING
HIGH…ic/opentelemetry/instrumentation/anthropic/__init__.py0instruments and calls every async function defined in to_wrap.STRING
HIGH…her/opentelemetry/instrumentation/together/__init__.py0instruments and calls every async function defined in to_wrap.STRING
HIGH…er/opentelemetry/instrumentation/sagemaker/__init__.py0instruments and calls every async function defined in to_wrap.STRING
HIGH…n-marqo/opentelemetry/instrumentation/marqo/wrapper.py0instruments and calls every async function defined in to_wrap.STRING
HIGH…eai/opentelemetry/instrumentation/voyageai/__init__.py0instruments and calls every async function defined in to_wrap.STRING
HIGH…watsonx/opentelemetry/instrumentation/watsonx/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…bedrock/opentelemetry/instrumentation/bedrock/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…lpha/opentelemetry/instrumentation/alephalpha/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…aviate/opentelemetry/instrumentation/weaviate/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…n-writer/opentelemetry/instrumentation/writer/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…chain/opentelemetry/instrumentation/langchain/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…rs/opentelemetry/instrumentation/transformers/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…ralai/opentelemetry/instrumentation/mistralai/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…n-qdrant/opentelemetry/instrumentation/qdrant/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…n-ollama/opentelemetry/instrumentation/ollama/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…n-milvus/opentelemetry/instrumentation/milvus/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…ystack/opentelemetry/instrumentation/haystack/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…rtexai/opentelemetry/instrumentation/vertexai/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…lancedb/opentelemetry/instrumentation/lancedb/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…litellm/opentelemetry/instrumentation/litellm/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…necone/opentelemetry/instrumentation/pinecone/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…antic-conventions-ai/opentelemetry/semconv_ai/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…n-cohere/opentelemetry/instrumentation/cohere/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…icate/opentelemetry/instrumentation/replicate/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…ation-groq/opentelemetry/instrumentation/groq/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…ndex/opentelemetry/instrumentation/llamaindex/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…romadb/opentelemetry/instrumentation/chromadb/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…gether/opentelemetry/instrumentation/together/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…maker/opentelemetry/instrumentation/sagemaker/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…ion-marqo/opentelemetry/instrumentation/marqo/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…yageai/opentelemetry/instrumentation/voyageai/utils.py0a decorator that wraps the passed in function and logs exceptions instead of throwing them. @param func: the function toSTRING
HIGH…watsonx/opentelemetry/instrumentation/watsonx/utils.py0checks if the instrumentation isn't using the legacy attributes and if the event logger is not none.STRING
HIGH…bedrock/opentelemetry/instrumentation/bedrock/utils.py0checks if the instrumentation isn't using the legacy attributes and if the event logger is not none.STRING
HIGH…n-writer/opentelemetry/instrumentation/writer/utils.py0checks if the instrumentation isn't using the legacy attributes and if the event logger is not none.STRING
HIGH…chain/opentelemetry/instrumentation/langchain/utils.py0checks if the instrumentation isn't using the legacy attributes and if the event logger is not none.STRING
HIGH…ralai/opentelemetry/instrumentation/mistralai/utils.py0checks if the instrumentation isn't using the legacy attributes and if the event logger is not none.STRING
HIGH…n-ollama/opentelemetry/instrumentation/ollama/utils.py0checks if the instrumentation isn't using the legacy attributes and if the event logger is not none.STRING
HIGH…litellm/opentelemetry/instrumentation/litellm/utils.py0checks if the instrumentation isn't using the legacy attributes and if the event logger is not none.STRING
HIGH…n-openai/opentelemetry/instrumentation/openai/utils.py0checks if the instrumentation isn't using the legacy attributes and if the event logger is not none.STRING
HIGH…n-cohere/opentelemetry/instrumentation/cohere/utils.py0checks if the instrumentation isn't using the legacy attributes and if the event logger is not none.STRING
HIGH…icate/opentelemetry/instrumentation/replicate/utils.py0checks if the instrumentation isn't using the legacy attributes and if the event logger is not none.STRING
HIGH…ation-groq/opentelemetry/instrumentation/groq/utils.py0checks if the instrumentation isn't using the legacy attributes and if the event logger is not none.STRING
HIGH…ndex/opentelemetry/instrumentation/llamaindex/utils.py0checks if the instrumentation isn't using the legacy attributes and if the event logger is not none.STRING
32 more matches not shown…
Deep Nesting240 hits · 210 pts
SeverityFileLineSnippetContext
LOWscripts/codegen/generate_evaluator_models.py18CODE
LOWscripts/codegen/generate_evaluator_models.py251CODE
LOWscripts/codegen/generate_evaluator_models.py64CODE
LOWscripts/codegen/generate_evaluator_models.py263CODE
LOW…ages/sample-app/sample_app/mcp_dev_assistant_server.py94CODE
LOW…ages/sample-app/sample_app/mcp_dev_assistant_server.py201CODE
LOW…ages/sample-app/sample_app/mcp_dev_assistant_server.py281CODE
LOWpackages/sample-app/sample_app/writer_example.py61CODE
LOW…es/sample-app/sample_app/google_genai_image_example.py27CODE
LOWpackages/sample-app/sample_app/dataset_example.py144CODE
LOWpackages/sample-app/sample_app/dataset_example.py180CODE
LOWpackages/sample-app/sample_app/dataset_example.py365CODE
LOWpackages/sample-app/sample_app/mcp_sonnet_example.py48CODE
LOW…es/sample-app/sample_app/openai_streaming_assistant.py40CODE
LOW…s/sample-app/sample_app/dataset_attachments_example.py241CODE
LOW…ample-app/sample_app/openai_agents_realtime_example.py43CODE
LOW…ample-app/sample_app/openai_agents_realtime_example.py245CODE
LOW…ample-app/sample_app/openai_agents_realtime_example.py496CODE
LOW…ample-app/sample_app/openai_agents_realtime_example.py284CODE
LOW…ample-app/sample_app/openai_agents_realtime_example.py303CODE
LOWpackages/sample-app/sample_app/openai_agents_example.py352CODE
LOWpackages/sample-app/sample_app/openai_agents_example.py550CODE
LOW…kages/sample-app/sample_app/openai_realtime_example.py31CODE
LOWpackages/sample-app/sample_app/sample_handoff_app.py100CODE
LOW…s/sample-app/sample_app/agents/travel_agent_example.py653CODE
LOW…ple-app/sample_app/chats/chatbot_with_tools_example.py153CODE
LOW…sonx/opentelemetry/instrumentation/watsonx/__init__.py552CODE
LOW…entation-watsonx/tests/metrics/test_watsonx_metrics.py14CODE
LOW…entation-watsonx/tests/metrics/test_watsonx_metrics.py76CODE
LOW…rock/opentelemetry/instrumentation/bedrock/__init__.py656CODE
LOW…rock/opentelemetry/instrumentation/bedrock/__init__.py755CODE
LOW…rock/opentelemetry/instrumentation/bedrock/__init__.py829CODE
LOW…rock/opentelemetry/instrumentation/bedrock/__init__.py989CODE
LOW…rock/opentelemetry/instrumentation/bedrock/__init__.py769CODE
LOW…rock/opentelemetry/instrumentation/bedrock/__init__.py859CODE
LOW…rock/opentelemetry/instrumentation/bedrock/__init__.py770CODE
LOW…rock/opentelemetry/instrumentation/bedrock/__init__.py860CODE
LOW…ck/opentelemetry/instrumentation/bedrock/span_utils.py75CODE
LOW…ck/opentelemetry/instrumentation/bedrock/span_utils.py148CODE
LOW…ck/opentelemetry/instrumentation/bedrock/span_utils.py198CODE
LOW…ck/opentelemetry/instrumentation/bedrock/span_utils.py216CODE
LOW…ck/opentelemetry/instrumentation/bedrock/span_utils.py261CODE
LOW…ck/opentelemetry/instrumentation/bedrock/span_utils.py381CODE
LOW…ck/opentelemetry/instrumentation/bedrock/span_utils.py450CODE
LOW…ck/opentelemetry/instrumentation/bedrock/span_utils.py610CODE
LOW…ck/opentelemetry/instrumentation/bedrock/span_utils.py670CODE
LOW…ck/opentelemetry/instrumentation/bedrock/span_utils.py890CODE
LOW…ck/opentelemetry/instrumentation/bedrock/span_utils.py981CODE
LOW…telemetry/instrumentation/bedrock/streaming_wrapper.py39CODE
LOW…telemetry/instrumentation/bedrock/streaming_wrapper.py81CODE
LOW…telemetry/instrumentation/bedrock/streaming_wrapper.py124CODE
LOW…telemetry/instrumentation/bedrock/streaming_wrapper.py166CODE
LOW…ock/opentelemetry/instrumentation/bedrock/guardrail.py183CODE
LOW…opentelemetry/instrumentation/bedrock/event_emitter.py65CODE
LOW…strumentation-bedrock/tests/test_semconv_compliance.py79CODE
LOW…strumentation-bedrock/tests/test_semconv_compliance.py305CODE
LOW…entation-bedrock/tests/metrics/test_bedrock_metrics.py11CODE
LOW…drock/tests/metrics/test_bedrock_guardrails_metrics.py83CODE
LOW…k/tests/metrics/test_bedrock_prompt_caching_metrics.py41CODE
LOW…etry-instrumentation-bedrock/tests/traces/test_meta.py544CODE
180 more matches not shown…
Self-Referential Comments54 hits · 166 pts
SeverityFileLineSnippetContext
MEDIUM…s/sample-app/sample_app/dataset_attachments_example.py37 # Create a product catalog with external mediaCOMMENT
MEDIUM…s/sample-app/sample_app/dataset_attachments_example.py90 # Create the datasetCOMMENT
MEDIUM…s/sample-app/sample_app/dataset_attachments_example.py121 # Create a dataset with file uploadsCOMMENT
MEDIUM…s/sample-app/sample_app/dataset_attachments_example.py163 # Create the dataset (uploads will happen automatically)COMMENT
MEDIUM…s/sample-app/sample_app/dataset_attachments_example.py245 # Create a temporary file for local attachmentCOMMENT
MEDIUMpackages/sample-app/sample_app/langgraph_example.py15# Define the tools for the agent to useCOMMENT
MEDIUMpackages/sample-app/sample_app/langgraph_example.py32# Define the function that determines whether to continue or notCOMMENT
MEDIUM⚡packages/sample-app/sample_app/langgraph_example.py43# Define the function that calls the modelCOMMENT
MEDIUM⚡packages/sample-app/sample_app/langgraph_example.py51# Define a new graphCOMMENT
MEDIUM⚡packages/sample-app/sample_app/langgraph_example.py54# Define the two nodes we will cycle betweenCOMMENT
MEDIUM…ample-app/sample_app/openai_agents_realtime_example.py95 # Create the realtime agent with toolsCOMMENT
MEDIUM…ample-app/sample_app/openai_agents_realtime_example.py337 # Create a text-only realtime agentCOMMENT
MEDIUMpackages/sample-app/sample_app/langgraph_openai.py8# Define the tools for the agent to useCOMMENT
MEDIUM…tion-langchain/tests/metrics/test_langchain_metrics.py181 # Create a patched version that returns results with None llm_outputCOMMENT
MEDIUMpackages/traceloop-sdk/traceloop/sdk/tracing/tracing.py139 # Create a wrapper that calls both the custom and original methodsCOMMENT
MEDIUM…kages/traceloop-sdk/traceloop/sdk/datasets/datasets.py99 # Create the datasetCOMMENT
MEDIUM…kages/traceloop-sdk/traceloop/sdk/datasets/datasets.py377 # Create a deep copy of rows to avoid modifying the originalCOMMENT
MEDIUM…kages/traceloop-sdk/traceloop/sdk/datasets/datasets.py388 # Create a new request with cleaned rowsCOMMENT
MEDIUMpackages/traceloop-sdk/tests/conftest.py35 # Create a new empty context and attach itCOMMENT
MEDIUM…raceloop-sdk/tests/datasets/test_dataset_operations.py14 # Create a simple CSV for the datasetCOMMENT
MEDIUM…op-sdk/tests/datasets/test_dataset_with_attachments.py61 # Create the datasetCOMMENT
MEDIUM…op-sdk/tests/datasets/test_dataset_with_attachments.py169 # Create a test fileCOMMENT
MEDIUM…s/traceloop-sdk/tests/datasets/test_rows_operations.py43 # Create a simple CSV for the initial datasetCOMMENT
MEDIUM…ages/traceloop-sdk/tests/experiment/test_experiment.py139 # Create a task that returns output missing required fieldsCOMMENT
MEDIUM…ages/traceloop-sdk/tests/experiment/test_experiment.py188 # Create a task that returns output missing required fieldsCOMMENT
MEDIUM…ages/traceloop-sdk/tests/experiment/test_experiment.py238 # Create a task that returns valid outputCOMMENT
MEDIUM…ages/traceloop-sdk/tests/experiment/test_experiment.py287 # Create a task that returns partial outputCOMMENT
MEDIUM…ages/traceloop-sdk/tests/experiment/test_experiment.py342 # Create a task that returns any outputCOMMENT
MEDIUM…instrumentation-vertexai/tests/test_role_attributes.py179 # Create a mock image-like object (simplified for testing)COMMENT
MEDIUM…instrumentation-vertexai/tests/test_role_attributes.py199 # Create a mock image-like object (simplified for testing)COMMENT
MEDIUM⚡…ntation-openai/tests/traces/test_semconv_compliance.py618 # Create a ChatStream with a MagicMock response (ObjectProxy needs a real object)COMMENT
MEDIUM…y-instrumentation-openai/tests/traces/test_realtime.py824 # Create a message itemCOMMENT
MEDIUM…metry-instrumentation-openai/tests/traces/test_chat.py1765 # Create a stream without consuming itCOMMENT
MEDIUM⚡…-instrumentation-openai/tests/traces/test_responses.py538 # Create a mock response objectCOMMENT
MEDIUM⚡…-instrumentation-openai/tests/traces/test_responses.py541 # Create a mock spanCOMMENT
MEDIUM⚡…-instrumentation-openai/tests/traces/test_responses.py544 # Create a mock tracerCOMMENT
MEDIUM…-instrumentation-openai/tests/traces/test_responses.py603 # Create a parent span and capture its trace contextCOMMENT
MEDIUM…-instrumentation-openai/tests/traces/test_responses.py674 # Create a parent span (simulating what guardrails wrapper does)COMMENT
MEDIUM…-instrumentation-openai/tests/traces/test_responses.py746 # Create a parent span (simulating what guardrails wrapper does)COMMENT
MEDIUM…aming_existing_assistant_with_events_with_content.yaml644 sympy import symbols, Eq, solve\n\n# Define the variable\nx = symbols(''x'')\n\n#CODE
MEDIUM…reaming_new_assistant_with_events_with_no_content.yaml743 sympy as sp\n\n# Define the variable\nx = sp.symbols(''x'')\n\n# Define theCODE
MEDIUM…ng_existing_assistant_with_events_with_no_content.yaml647 sympy as sp\n\n# Define the variable\nx = sp.symbols(''x'')\n\n# Define theCODE
MEDIUM…_streaming_new_assistant_with_events_with_content.yaml736 sympy as sp\n\n# Define the variable\nx = sp.symbols(''x'')\n\n# Define theCODE
MEDIUM…ettes/test_assistant/test_streaming_new_assistant.yaml736 sympy as sp\r\n\r\n# Define the variable\r\nx = sp.symbols(''x'')\r\n\r\n#CODE
MEDIUM…/test_assistant/test_streaming_existing_assistant.yaml647 sympy as sp\r\n\r\n# Define the variable\r\nx = sp.symbols(''x'')\r\n\r\n#CODE
MEDIUM…/opentelemetry/instrumentation/openai_agents/_hooks.py678 # Create a root "Agent Workflow" span for the entire traceCOMMENT
MEDIUM…y-instrumentation-openai-agents/tests/test_realtime.py82 # Create a mock trace firstCOMMENT
MEDIUM⚡…trumentation-openai-agents/tests/test_openai_agents.py37 # Create a simple agentCOMMENT
MEDIUM⚡…trumentation-openai-agents/tests/test_openai_agents.py44 # Create a query with structured content as array of objects (multimodal format)COMMENT
MEDIUM…trumentation-openai-agents/tests/test_openai_agents.py337 # Create a simple function tool for the composerCOMMENT
MEDIUM⚡…mentation-openai-agents/tests/test_semconv_messages.py2788 # Create a parent span for contextCOMMENT
MEDIUM…pentelemetry-instrumentation-mcp/tests/test_fastmcp.py4 # Create a simple FastMCP serverCOMMENT
MEDIUM…-instrumentation-mcp/tests/test_fastmcp_server_span.py5 # Create a simple FastMCP serverCOMMENT
MEDIUM…ic/opentelemetry/instrumentation/anthropic/__init__.py84 # This method is on an async resource, but is meant to be called asCOMMENT
Unused Imports110 hits · 94 pts
SeverityFileLineSnippetContext
LOW…ample-app/sample_app/openai_agents_realtime_example.py650CODE
LOW…elemetry-instrumentation-bedrock/tests/test_semconv.py1CODE
LOW…telemetry-instrumentation-langchain/tests/test_llms.py12CODE
LOWpackages/traceloop-sdk/traceloop/sdk/__init__.py35CODE
LOW…ages/traceloop-sdk/traceloop/sdk/evaluator/__init__.py1CODE
LOW…ages/traceloop-sdk/traceloop/sdk/evaluator/__init__.py2CODE
LOW…ages/traceloop-sdk/traceloop/sdk/evaluator/__init__.py3CODE
LOW…ckages/traceloop-sdk/traceloop/sdk/tracing/__init__.py1CODE
LOW…ckages/traceloop-sdk/traceloop/sdk/tracing/__init__.py2CODE
LOW…ckages/traceloop-sdk/traceloop/sdk/tracing/__init__.py2CODE
LOW…ckages/traceloop-sdk/traceloop/sdk/tracing/__init__.py2CODE
LOW…s/traceloop-sdk/traceloop/sdk/associations/__init__.py1CODE
LOW…s/traceloop-sdk/traceloop/sdk/associations/__init__.py1CODE
LOW…s/traceloop-sdk/traceloop/sdk/associations/__init__.py1CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py15CODE
LOW…kages/traceloop-sdk/traceloop/sdk/datasets/__init__.py1CODE
LOW…kages/traceloop-sdk/traceloop/sdk/datasets/__init__.py1CODE
LOW…kages/traceloop-sdk/traceloop/sdk/datasets/__init__.py1CODE
LOW…kages/traceloop-sdk/traceloop/sdk/datasets/__init__.py6CODE
LOW…kages/traceloop-sdk/traceloop/sdk/datasets/__init__.py7CODE
LOW…kages/traceloop-sdk/traceloop/sdk/datasets/__init__.py8CODE
LOW…kages/traceloop-sdk/traceloop/sdk/datasets/__init__.py9CODE
LOW…kages/traceloop-sdk/traceloop/sdk/datasets/__init__.py9CODE
LOW…kages/traceloop-sdk/traceloop/sdk/datasets/__init__.py9CODE
LOW…kages/traceloop-sdk/traceloop/sdk/datasets/__init__.py9CODE
LOW…kages/traceloop-sdk/traceloop/sdk/datasets/__init__.py15CODE
LOWpackages/traceloop-sdk/traceloop/sdk/datasets/row.py7CODE
LOWpackages/traceloop-sdk/traceloop/sdk/datasets/column.py8CODE
LOW…es/traceloop-sdk/traceloop/sdk/guardrail/on_failure.py10CODE
LOW…ckages/traceloop-sdk/traceloop/sdk/guardrail/guards.py19CODE
LOW…ages/traceloop-sdk/traceloop/sdk/guardrail/__init__.py29CODE
LOW…ages/traceloop-sdk/traceloop/sdk/guardrail/__init__.py30CODE
50 more matches not shown…
Modern Structural Boilerplate77 hits · 80 pts
SeverityFileLineSnippetContext
LOW…sonx/opentelemetry/instrumentation/watsonx/__init__.py42logger = logging.getLogger(__name__)CODE
LOW…rock/opentelemetry/instrumentation/bedrock/__init__.py110logger = logging.getLogger(__name__)CODE
LOW…ck/opentelemetry/instrumentation/bedrock/span_utils.py19logger = logging.getLogger(__name__)CODE
LOW…telemetry/instrumentation/bedrock/streaming_wrapper.py9logger = logging.getLogger(__name__)CODE
LOW…a/opentelemetry/instrumentation/alephalpha/__init__.py39logger = logging.getLogger(__name__)CODE
LOW…iate/opentelemetry/instrumentation/weaviate/wrapper.py13logger = logging.getLogger(__name__)CODE
LOW…ate/opentelemetry/instrumentation/weaviate/__init__.py16logger = logging.getLogger(__name__)CODE
LOW…riter/opentelemetry/instrumentation/writer/__init__.py38logger = logging.getLogger(__name__)CODE
LOW…n-writer/opentelemetry/instrumentation/writer/utils.py28def set_span_attribute(span: Span, name: str, value: Any | None) -> None:CODE
LOW…ter/opentelemetry/instrumentation/writer/span_utils.py16def set_input_attributes(span: Span, kwargs: dict) -> None:CODE
LOW…ter/opentelemetry/instrumentation/writer/span_utils.py63def set_model_input_attributes(span: Span, kwargs: dict) -> None:CODE
LOW…ter/opentelemetry/instrumentation/writer/span_utils.py141def set_response_attributes(span: Span, response) -> None:CODE
LOW…ter/opentelemetry/instrumentation/writer/span_utils.py152def _set_completions(span: Span, choices: list) -> None:CODE
LOW…chain/opentelemetry/instrumentation/langchain/patch.py14logger = logging.getLogger(__name__)CODE
LOW…in/opentelemetry/instrumentation/langchain/__init__.py35logger = logging.getLogger(__name__)CODE
LOW…/opentelemetry/instrumentation/langchain/span_utils.py28logger = logging.getLogger(__name__)CODE
LOW…/opentelemetry/instrumentation/langchain/span_utils.py81def _set_span_attribute(span: Span, key: str, value: Any) -> None:CODE
LOW…/opentelemetry/instrumentation/langchain/span_utils.py315def set_chat_response(span: Span, response: LLMResult) -> None:CODE
LOW…ation/transformers/text_generation_pipeline_wrapper.py26logger = logging.getLogger(__name__)CODE
LOW…opentelemetry/instrumentation/transformers/__init__.py18logger = logging.getLogger(__name__)CODE
LOW…ai/opentelemetry/instrumentation/mistralai/__init__.py49logger = logging.getLogger(__name__)CODE
LOW…drant/opentelemetry/instrumentation/qdrant/__init__.py21logger = logging.getLogger(__name__)CODE
LOW…llama/opentelemetry/instrumentation/ollama/__init__.py47logger = logging.getLogger(__name__)CODE
LOW⚡packages/traceloop-sdk/traceloop/sdk/__init__.py274 def set_association_properties(properties: dict) -> None:CODE
LOW…ages/traceloop-sdk/traceloop/sdk/evaluator/__init__.py5__all__ = [CODE
LOW⚡packages/traceloop-sdk/traceloop/sdk/tracing/tracing.py247def set_association_properties(properties: dict) -> None:CODE
LOW⚡packages/traceloop-sdk/traceloop/sdk/tracing/tracing.py256def _set_association_properties_attributes(span, properties: dict) -> None:CODE
LOWpackages/traceloop-sdk/traceloop/sdk/tracing/tracing.py233 def set_disabled(cls, disabled: bool) -> None:CODE
LOW…s/traceloop-sdk/traceloop/sdk/associations/__init__.py7__all__ = ["Associations", "AssociationProperty", "Association"]CODE
LOW…ges/traceloop-sdk/traceloop/sdk/guardrails/__init__.py48__all__ = [CODE
LOW…ges/traceloop-sdk/traceloop/sdk/decorators/__init__.py22__all__ = [CODE
LOW…kages/traceloop-sdk/traceloop/sdk/datasets/datasets.py27logger = logging.getLogger(__name__)CODE
LOW…kages/traceloop-sdk/traceloop/sdk/datasets/__init__.py17__all__ = [CODE
LOW…ages/traceloop-sdk/traceloop/sdk/guardrail/__init__.py75__all__ = [CODE
LOW…ges/traceloop-sdk/traceloop/sdk/experiment/__init__.py3__all__ = ["Experiment"]CODE
LOW…ilvus/opentelemetry/instrumentation/milvus/__init__.py21logger = logging.getLogger(__name__)CODE
LOW…ck/opentelemetry/instrumentation/haystack/wrap_node.py10logger = logging.getLogger(__name__)CODE
LOW…/opentelemetry/instrumentation/haystack/wrap_openai.py18logger = logging.getLogger(__name__)CODE
LOW…ack/opentelemetry/instrumentation/haystack/__init__.py17logger = logging.getLogger(__name__)CODE
LOW…pentelemetry/instrumentation/haystack/wrap_pipeline.py14logger = logging.getLogger(__name__)CODE
LOW…xai/opentelemetry/instrumentation/vertexai/__init__.py37logger = logging.getLogger(__name__)CODE
LOW…i/opentelemetry/instrumentation/vertexai/span_utils.py15logger = logging.getLogger(__name__)CODE
LOW…on-agno/opentelemetry/instrumentation/agno/__init__.py30logger = logging.getLogger(__name__)CODE
LOW⚡…ation-agno/opentelemetry/instrumentation/agno/utils.py7logger = logging.getLogger(__name__)CODE
LOW⚡…ation-agno/opentelemetry/instrumentation/agno/utils.py30def set_span_attribute(span: Span, name: str, value: Any) -> None:CODE
LOW…n-agno/opentelemetry/instrumentation/agno/streaming.py13logger = logging.getLogger(__name__)CODE
LOW…cedb/opentelemetry/instrumentation/lancedb/__init__.py18logger = logging.getLogger(__name__)CODE
LOW…ellm/opentelemetry/instrumentation/litellm/__init__.py47logger = logging.getLogger(__name__)CODE
LOW…one/opentelemetry/instrumentation/pinecone/__init__.py35logger = logging.getLogger(__name__)CODE
LOW…emetry/instrumentation/openai/v1/assistant_wrappers.py33logger = logging.getLogger(__name__)CODE
LOW…lemetry/instrumentation/openai/shared/chat_wrappers.py68logger = logging.getLogger(__name__)CODE
LOW…pentelemetry/instrumentation/openai/shared/__init__.py33logger = logging.getLogger(__name__)CODE
LOW…y/instrumentation/openai/shared/embeddings_wrappers.py53logger = logging.getLogger(__name__)CODE
LOW…y/instrumentation/openai/shared/completion_wrappers.py48logger = logging.getLogger(__name__)CODE
LOW…ohere/opentelemetry/instrumentation/cohere/__init__.py43logger = logging.getLogger(__name__)CODE
LOW…rewai/opentelemetry/instrumentation/crewai/__init__.py5__all__ = ["CrewAIInstrumentor", "__version__"]CODE
LOW…ry/instrumentation/openai_agents/_realtime_wrappers.py26logger = logging.getLogger(__name__)CODE
LOW…te/opentelemetry/instrumentation/replicate/__init__.py35logger = logging.getLogger(__name__)CODE
LOW…on-groq/opentelemetry/instrumentation/groq/__init__.py51logger = logging.getLogger(__name__)CODE
LOW…tion-mcp/opentelemetry/instrumentation/mcp/__init__.py4__all__ = ["McpInstrumentor", "__version__"]CODE
17 more matches not shown…
Cross-Language Confusion13 hits · 69 pts
SeverityFileLineSnippetContext
HIGH…ges/traceloop-sdk/traceloop/sdk/guardrail/condition.py84 "Condition.equals() is deprecated. Use eq() from "CODE
HIGH⚡…ages/traceloop-sdk/tests/guardrails/test_conditions.py130 condition = Condition.equals("approved")CODE
HIGH⚡…ages/traceloop-sdk/tests/guardrails/test_conditions.py135 condition = Condition.equals("approved")CODE
HIGH⚡…ages/traceloop-sdk/tests/guardrails/test_conditions.py140 condition = Condition.equals("approved")CODE
HIGH⚡…ages/traceloop-sdk/tests/guardrails/test_conditions.py146 condition = Condition.equals(42)CODE
HIGH⚡…ages/traceloop-sdk/tests/guardrails/test_conditions.py151 condition = Condition.equals(0.8)CODE
HIGH⚡…ages/traceloop-sdk/tests/guardrails/test_conditions.py156 condition = Condition.equals(True)CODE
HIGH⚡…ages/traceloop-sdk/tests/guardrails/test_conditions.py126 """Tests for Condition.equals()."""STRING
HIGH⚡…rumentation-openai-agents/tests/test_finish_reasons.py285 """P2: Optional fields on tool_call parts must be omitted (not set to '' or null)STRING
HIGH⚡…rumentation-openai-agents/tests/test_finish_reasons.py288 OTel ToolCallRequestPart schema: id is optional (default null), arguments is optional.STRING
HIGH…mentation-openai-agents/tests/test_semconv_messages.py3471 f"'id' must be absent (not null) when call_id is missing, got {part!r}"CODE
HIGH⚡…mentation-openai-agents/tests/test_semconv_messages.py3259 The id field is optional (OTel ToolCallRequestPart.id defaults null).STRING
HIGH…rumentation-anthropic/tests/test_semconv_span_attrs.py1041 string value — NOT serialized as null, NOT omitted (Bedrock convention)."""STRING
Redundant / Tautological Comments25 hits · 40 pts
SeverityFileLineSnippetContext
LOWscripts/codegen/generate_evaluator_models.py290 # Check if there's a config propertySTRING
LOWscripts/codegen/generate_evaluator_models.py327 # Check if there's an input propertySTRING
LOW…/sample-app/sample_app/vertex_gemini_vision_example.py101 # Check if the image existsCOMMENT
LOW…e-app/sample_app/pinecone_app_sentence_transformers.py10# Set this to True for first runCOMMENT
LOWpackages/sample-app/sample_app/chats/gemini_chatbot.py149 # Check if the model wants to use a toolCOMMENT
LOW…instrumentation-bedrock/tests/traces/test_anthropic.py1005 # Check if we got a toolUse deltaCOMMENT
LOW…elemetry/instrumentation/langchain/callback_handler.py373 # Check if we're in a LangGraph flow and this is the first childCOMMENT
LOW…instrumentation-langchain/tests/test_batch_metadata.py36 # Check if metadata is present as span attributesCOMMENT
LOW…instrumentation-langchain/tests/test_batch_metadata.py86 # Check if metadata is present as span attributesCOMMENT
LOW…telemetry-instrumentation-langchain/tests/test_llms.py10# Check if text_generation is available (used by HuggingFaceTextGenInference)COMMENT
LOW…traceloop-sdk/traceloop/sdk/evaluator/field_mapping.py143 # Check if any available field is a synonym of the missing fieldCOMMENT
LOW…s/traceloop-sdk/traceloop/sdk/experiment/experiment.py302 # Check if running in GitHub ActionsCOMMENT
LOW…entelemetry-instrumentation-milvus/tests/test_error.py87 # Check if status code is errorCOMMENT
LOW⚡…i/opentelemetry/instrumentation/vertexai/span_utils.py28 # Check if it has the Part attributes we expectCOMMENT
LOW⚡…i/opentelemetry/instrumentation/vertexai/span_utils.py32 # Check if it's an image mime type and has inline dataCOMMENT
LOW⚡…i/opentelemetry/instrumentation/vertexai/span_utils.py34 # Check if the inline_data has actual dataCOMMENT
LOW…lemetry/instrumentation/openai/v1/realtime_wrappers.py644 # Set trace_context to include the session span as parent for response spansCOMMENT
LOW…rumentation-openai/tests/traces/test_finish_reasons.py454 # Output messages should also carry finish_reason="stop"COMMENT
LOW…rumentation-openai/tests/traces/test_finish_reasons.py509 # Output messages should carry finish_reason="tool_call"COMMENT
LOW⚡…n-openai/tests/traces/test_span_context_propagation.py43 # Check if we got any spans (instrumentation worked)COMMENT
LOW⚡…n-openai/tests/traces/test_span_context_propagation.py48 # Check if we got any eventsCOMMENT
LOW…p/opentelemetry/instrumentation/mcp/instrumentation.py452 # Check if this is an error responseCOMMENT
LOW…-instrumentation-mcp/tests/test_fastmcp_server_span.py37 # Check if we have the expected spansCOMMENT
LOW⚡…nstrumentation-llamaindex/tests/test_finish_reasons.py499# Output messages: finish_reason in gen_ai.output.messages JSONCOMMENT
LOW…ion-google-generativeai/tests/test_generate_content.py67 # Output messages are now a single JSON array (parts-based OTel schema)COMMENT
Modern AI Meta-Vocabulary16 hits · 37 pts
SeverityFileLineSnippetContext
MEDIUM…ges/sample-app/sample_app/openai_guardrails_example.py19# Initialize Traceloop FIRST - before importing guardrailsCOMMENT
MEDIUM…ges/sample-app/sample_app/openai_guardrails_example.py30 print("\nDocumentation: https://openai.github.io/openai-guardrails-python/")CODE
MEDIUM…ges/sample-app/sample_app/openai_guardrails_example.py65 # Create guardrails configurationCOMMENT
MEDIUM…uard.test_answer_relevancy_passes_relevant_answer.yaml16 uri: https://api.traceloop.dev/v2/guardrails/answer-relevancy/executeCODE
MEDIUM…ard.test_answer_relevancy_fails_irrelevant_answer.yaml16 uri: https://api.traceloop.dev/v2/guardrails/answer-relevancy/executeCODE
MEDIUM…test_toxicity_detector_guard_passes_friendly_text.yaml16 uri: https://api.traceloop.dev/v2/guardrails/toxicity-detector/executeCODE
MEDIUM…orGuard.test_pii_detector_guard_passes_clean_text.yaml16 uri: https://api.traceloop.dev/v2/guardrails/pii-detector/executeCODE
MEDIUM…ard.test_toxicity_detector_guard_fails_toxic_text.yaml16 uri: https://api.traceloop.dev/v2/guardrails/toxicity-detector/executeCODE
MEDIUM…torGuard.test_pii_detector_guard_fails_with_email.yaml16 uri: https://api.traceloop.dev/v2/guardrails/pii-detector/executeCODE
MEDIUM…Validation.test_validate_multiple_guards_all_pass.yaml16 uri: https://api.traceloop.dev/v2/guardrails/pii-detector/executeCODE
MEDIUM…Validation.test_validate_multiple_guards_all_pass.yaml40 uri: https://api.traceloop.dev/v2/guardrails/toxicity-detector/executeCODE
MEDIUM…alidation.test_validate_multiple_guards_one_fails.yaml16 uri: https://api.traceloop.dev/v2/guardrails/pii-detector/executeCODE
MEDIUM…alidation.test_validate_multiple_guards_one_fails.yaml40 uri: https://api.traceloop.dev/v2/guardrails/toxicity-detector/executeCODE
MEDIUM…emetry/instrumentation/openai/v1/responses_wrappers.py306 # (e.g., when wrappers like openai-guardrails pass tools=None)COMMENT
MEDIUM…-instrumentation-openai/tests/traces/test_responses.py674 # Create a parent span (simulating what guardrails wrapper does)COMMENT
MEDIUM…-instrumentation-openai/tests/traces/test_responses.py746 # Create a parent span (simulating what guardrails wrapper does)COMMENT
Docstring Block Structure7 hits · 35 pts
SeverityFileLineSnippetContext
HIGH…ges/traceloop-sdk/traceloop/sdk/evaluator/evaluator.py235 Validate that task output contains all required fields for the given evaluators. Automatically normalizes fieldSTRING
HIGH…ges/traceloop-sdk/traceloop/sdk/guardrail/guardrail.py162 Execute a function with guardrail protection. Args: func_to_guard: Async function that retSTRING
HIGH…ges/traceloop-sdk/traceloop/sdk/guardrail/guardrail.py238 Run guards on inputs directly, without wrapping in a function. Args: guard_inputs: Inputs STRING
HIGH…ges/traceloop-sdk/traceloop/sdk/guardrail/guardrail.py304 Resolve a dict of guard inputs keyed by guard name to an ordered list. Args: mapped: Dict STRING
HIGH…ges/traceloop-sdk/traceloop/sdk/guardrail/guardrail.py457 Execute guards with tracing, handling validation, execution, and error checking. Args: guaSTRING
HIGH…raceloop-sdk/traceloop/sdk/guardrail/default_mapper.py10 Default mapper for common response types. Handles: - str: Creates dict with common text field names for eaSTRING
HIGH…s/traceloop-sdk/traceloop/sdk/experiment/experiment.py276Execute tasks locally and submit results to backend for GitHub CI/CD This method: 1. Fetches the dataseSTRING
Dead Code8 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUM…ry-instrumentation-ollama/tests/test_error_handling.py58CODE
MEDIUM…ry-instrumentation-ollama/tests/test_error_handling.py90CODE
MEDIUM…ry-instrumentation-ollama/tests/test_error_handling.py121CODE
MEDIUM…ry-instrumentation-ollama/tests/test_error_handling.py145CODE
MEDIUMpackages/traceloop-sdk/tests/test_tasks.py110CODE
MEDIUMpackages/traceloop-sdk/tests/test_tasks.py111CODE
MEDIUM…strumentation-groq/tests/traces/test_error_handling.py53CODE
MEDIUM…strumentation-groq/tests/traces/test_error_handling.py82CODE
Overly Generic Function Names10 hits · 12 pts
SeverityFileLineSnippetContext
LOW⚡…eloop-sdk/tests/guardrails/test_guardrail_decorator.py26 async def my_function(prompt: str) -> str:CODE
LOW⚡…eloop-sdk/tests/guardrails/test_guardrail_decorator.py171 async def my_function() -> str:CODE
LOW⚡…eloop-sdk/tests/guardrails/test_guardrail_decorator.py188 async def my_function() -> str:CODE
LOW…eloop-sdk/tests/guardrails/test_guardrail_decorator.py53 async def my_function(arg1: str, arg2: int, kwarg1: str = "default") -> str:CODE
LOW…eloop-sdk/tests/guardrails/test_guardrail_decorator.py95 async def my_function() -> str:CODE
LOW…eloop-sdk/tests/guardrails/test_guardrail_decorator.py123 async def my_function() -> str:CODE
LOW…eloop-sdk/tests/guardrails/test_guardrail_decorator.py148 async def my_function() -> str:CODE
LOW…eloop-sdk/tests/guardrails/test_guardrail_decorator.py207 async def my_function() -> str:CODE
LOW…eloop-sdk/tests/guardrails/test_guardrail_decorator.py229 async def my_function() -> str:CODE
LOW…y-instrumentation-mcp/tests/test_fastmcp_attributes.py13 async def process_data(items: list, operation: str, metadata: dict = None) -> dict:CODE
Verbosity Indicators7 hits · 10 pts
SeverityFileLineSnippetContext
LOWpackages/sample-app/sample_app/langchain_app.py14 # Step 1: Get a joke about OpenTelemetryCOMMENT
LOWpackages/sample-app/sample_app/langchain_app.py27 # Step 2: Translate the joke to SindarinCOMMENT
LOW…s/sample-app/sample_app/guardrails/validate_example.py69 # Step 1: Create input validation guardrail (prompt injection detection)COMMENT
LOW…s/sample-app/sample_app/guardrails/validate_example.py87 # Step 2: Create output guardrailCOMMENT
LOW⚡…e-app/sample_app/guardrails/multiple_guards_example.py223 {"text": text, "step": "pre-check"}, # Step 1: Basic validationCODE
LOW⚡…e-app/sample_app/guardrails/multiple_guards_example.py224 {"text": text, "step": "main"}, # Step 2: Main checkCODE
LOW⚡…e-app/sample_app/guardrails/multiple_guards_example.py225 {"text": text, "step": "post-check"}, # Step 3: Final checkCODE
Structural Annotation Overuse7 hits · 10 pts
SeverityFileLineSnippetContext
LOWpackages/sample-app/sample_app/langchain_app.py14 # Step 1: Get a joke about OpenTelemetryCOMMENT
LOWpackages/sample-app/sample_app/langchain_app.py27 # Step 2: Translate the joke to SindarinCOMMENT
LOW…s/sample-app/sample_app/guardrails/validate_example.py69 # Step 1: Create input validation guardrail (prompt injection detection)COMMENT
LOW…s/sample-app/sample_app/guardrails/validate_example.py87 # Step 2: Create output guardrailCOMMENT
LOW⚡…e-app/sample_app/guardrails/multiple_guards_example.py223 {"text": text, "step": "pre-check"}, # Step 1: Basic validationCODE
LOW⚡…e-app/sample_app/guardrails/multiple_guards_example.py224 {"text": text, "step": "main"}, # Step 2: Main checkCODE
LOW⚡…e-app/sample_app/guardrails/multiple_guards_example.py225 {"text": text, "step": "post-check"}, # Step 3: Final checkCODE
AI Slop Vocabulary4 hits · 10 pts
SeverityFileLineSnippetContext
LOWpackages/sample-app/sample_app/chats/gemini_chatbot.py32 # Simplified - just return current UTC timeCOMMENT
MEDIUM⚡…strumentation-bedrock/tests/test_semconv_compliance.py896# P2-6: Content parts mapping - comprehensive structural validationCOMMENT
MEDIUM⚡…try-instrumentation-crewai/tests/test_semconv_attrs.py234# _process_llm — comprehensive sweep: zero legacy llm.* attribute namesCOMMENT
MEDIUM⚡…mentation-openai-agents/tests/test_semconv_messages.py2313# Spec §4: finish_reasons top-level span attribute — comprehensiveCOMMENT
Slop Phrases4 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUM⚡packages/sample-app/sample_app/dataset_example.py339 "ai_response": """I apologize, but I'm unable to process your request at the moment.CODE
MEDIUMpackages/sample-app/sample_app/langgraph_example.py80# meaning you can use it as you would any other runnable.COMMENT
MEDIUM…/sample-app/sample_app/guardrails/decorator_example.py28 on_failure="Sorry, I cannot provide that response.",CODE
MEDIUM…ntelemetry-instrumentation-milvus/tests/test_search.py153 ], # Another query vector (you can add more as needed)CODE
AI Structural Patterns13 hits · 9 pts
SeverityFileLineSnippetContext
LOWpackages/traceloop-sdk/traceloop/sdk/__init__.py50CODE
LOWpackages/traceloop-sdk/traceloop/sdk/tracing/tracing.py75CODE
LOW…ges/traceloop-sdk/traceloop/sdk/datasets/attachment.py30CODE
LOW…s/traceloop-sdk/traceloop/sdk/experiment/experiment.py41CODE
LOW…s/traceloop-sdk/traceloop/sdk/experiment/experiment.py94CODE
LOWpackages/traceloop-sdk/tests/test_workflows.py132CODE
LOW…eloop-sdk/tests/guardrails/test_guardrail_decorator.py46CODE
LOW…-instrumentation-vertexai/tests/disabled_test_bison.py150CODE
LOW…lemetry/instrumentation/openai/shared/chat_wrappers.py916CODE
LOW…lemetry/instrumentation/openai/shared/chat_wrappers.py987CODE
LOW…lemetry/instrumentation/openai/shared/chat_wrappers.py663CODE
LOW…mentation-openai-agents/tests/test_semconv_messages.py110CODE
LOW…rumentation-anthropic/tests/test_semconv_span_attrs.py306CODE
Magic Placeholder Names1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…s/sample-app/sample_app/dataset_attachments_example.py334 # os.environ["TRACELOOP_API_KEY"] = "your-api-key-here"COMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…pentelemetry-instrumentation-mcp/tests/test_fastmcp.py118 # Verify RequestStreamWriter spans were removed (as requested)COMMENT
Fake / Example Data6 hits · 6 pts
SeverityFileLineSnippetContext
LOWpackages/traceloop-sdk/tests/conftest.py230 api_key = os.environ.get("TRACELOOP_API_KEY", "fake-key-for-vcr-playback")CODE
LOW…ges/traceloop-sdk/tests/test_association_properties.py18 Traceloop.set_association_properties({"user_id": 1, "user_name": "John Doe"})CODE
LOW…ges/traceloop-sdk/tests/test_association_properties.py39 == "John Doe"CODE
LOW…ges/traceloop-sdk/tests/test_association_properties.py51 == "John Doe"CODE
LOWpackages/traceloop-sdk/tests/guardrails/conftest.py26 api_key = os.environ.get("TRACELOOP_API_KEY", "fake-key-for-vcr-playback")CODE
LOW…ges/traceloop-sdk/tests/guardrails/test_integration.py36 api_key = os.environ.get("TRACELOOP_API_KEY", "fake-key-for-vcr-playback")CODE
Over-Commented Block6 hits · 6 pts
SeverityFileLineSnippetContext
LOW…in/opentelemetry/instrumentation/langchain/__init__.py201COMMENT
LOW…elemetry/instrumentation/langchain/callback_handler.py301 if not token:COMMENT
LOW…try-instrumentation-langchain/tests/test_tool_calls.py41 # )COMMENT
LOWpackages/traceloop-sdk/traceloop/sdk/decorators/base.py281 # explicitly ties that cleanup to this wrapper's own close.COMMENT
LOW…oop-sdk/traceloop/sdk/utils/in_memory_span_exporter.py1# Copyright The OpenTelemetry AuthorsCOMMENT
LOW…entelemetry/instrumentation/pinecone/query_handlers.py1import jsonCOMMENT