Repository Analysis

traceloop/openllmetry

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

15.3 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of traceloop/openllmetry, a Python project with 7,298 GitHub stars. SynthScan v2.0 examined 370,969 lines of code across 1617 source files, recording 3969 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 15.3 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

15.3
Adjusted Score
15.3
Raw Score
100%
Time Factor
2026-07-13
Last Push
7.3K
Stars
Python
Language
371.0K
Lines of Code
1.6K
Files
4.0K
Pattern Hits
2026-07-14
Scan Date
0.07
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 114MEDIUM 656LOW 3199

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 3969 distinct pattern matches across 23 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers2332 hits · 2107 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
LOWpackages/sample-app/sample_app/dataset_example.py62def dataset_from_dataframe_example(slug: str) -> Optional[Dataset]:CODE
LOWpackages/sample-app/sample_app/dataset_example.py256def get_dataset_by_version_example(slug: str, version: str):CODE
LOWpackages/sample-app/sample_app/dataset_example.py268def get_dataset_by_slug_example(slug: str):CODE
LOWpackages/sample-app/sample_app/dataset_example.py288def create_customer_support_dataset(slug: str) -> Optional[Dataset]:CODE
LOWpackages/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
2272 more matches not shown…
Decorative Section Separators451 hits · 1643 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
391 more matches not shown…
Excessive Try-Catch Wrapping489 hits · 614 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
LOWpackages/sample-app/sample_app/llama_parse_app.py46 except Exception as e:CODE
LOWpackages/sample-app/sample_app/llama_parse_app.py55 except Exception as e:CODE
LOWpackages/sample-app/sample_app/llama_parse_app.py64 except Exception as e:CODE
LOWpackages/sample-app/sample_app/llama_parse_app.py74 except Exception as e:CODE
MEDIUMpackages/sample-app/sample_app/llama_parse_app.py68def main():CODE
MEDIUMpackages/sample-app/sample_app/dataset_example.py55 print(f"Error creating dataset from CSV: {e}")CODE
MEDIUMpackages/sample-app/sample_app/dataset_example.py252 print(f"Error publishing dataset: {e}")CODE
MEDIUMpackages/sample-app/sample_app/dataset_example.py265 print(f"Error getting dataset by version: {e}")CODE
MEDIUMpackages/sample-app/sample_app/dataset_example.py275 print(f"Error getting dataset by slug: {e}")CODE
MEDIUMpackages/sample-app/sample_app/dataset_example.py285 print(f"Error deleting dataset: {e}")CODE
MEDIUMpackages/sample-app/sample_app/dataset_example.py334 print(f"Error generating response for query '{query}': {e}")CODE
MEDIUMpackages/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
LOWpackages/sample-app/sample_app/dataset_example.py54 except Exception as e:CODE
LOWpackages/sample-app/sample_app/dataset_example.py251 except Exception as e:CODE
LOWpackages/sample-app/sample_app/dataset_example.py264 except Exception as e:CODE
LOWpackages/sample-app/sample_app/dataset_example.py274 except Exception as e:CODE
LOWpackages/sample-app/sample_app/dataset_example.py284 except Exception as e:CODE
LOWpackages/sample-app/sample_app/dataset_example.py333 except Exception as e:CODE
LOWpackages/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
429 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 Nesting233 hits · 207 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
173 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
MEDIUMpackages/sample-app/sample_app/langgraph_example.py43# Define the function that calls the modelCOMMENT
MEDIUMpackages/sample-app/sample_app/langgraph_example.py51# Define a new graphCOMMENT
MEDIUMpackages/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.py528 # Create a mock response objectCOMMENT
MEDIUM…-instrumentation-openai/tests/traces/test_responses.py531 # Create a mock spanCOMMENT
MEDIUM…-instrumentation-openai/tests/traces/test_responses.py534 # Create a mock tracerCOMMENT
MEDIUM…-instrumentation-openai/tests/traces/test_responses.py593 # Create a parent span and capture its trace contextCOMMENT
MEDIUM…-instrumentation-openai/tests/traces/test_responses.py664 # Create a parent span (simulating what guardrails wrapper does)COMMENT
MEDIUM…-instrumentation-openai/tests/traces/test_responses.py736 # 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.py659 # 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 Boilerplate81 hits · 82 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
LOWpackages/traceloop-sdk/traceloop/sdk/__init__.py250 def set_association_properties(properties: dict) -> None:CODE
LOW…ages/traceloop-sdk/traceloop/sdk/evaluator/__init__.py5__all__ = [CODE
LOWpackages/traceloop-sdk/traceloop/sdk/tracing/tracing.py247def set_association_properties(properties: dict) -> None:CODE
LOWpackages/traceloop-sdk/traceloop/sdk/tracing/tracing.py256def _set_association_properties_attributes(span, properties: dict) -> None:CODE
LOWpackages/traceloop-sdk/traceloop/sdk/tracing/tracing.py263def set_workflow_name(workflow_name: str) -> None:CODE
LOWpackages/traceloop-sdk/traceloop/sdk/tracing/tracing.py267def set_agent_name(agent_name: str) -> None:CODE
LOWpackages/traceloop-sdk/traceloop/sdk/tracing/tracing.py271def set_conversation_id(conversation_id: str) -> None:CODE
LOWpackages/traceloop-sdk/traceloop/sdk/tracing/tracing.py233 def set_disabled(cls, disabled: bool) -> None:CODE
LOWpackages/traceloop-sdk/traceloop/sdk/tracing/tracing.py284def set_entity_path(entity_path: str) -> 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__.py21__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__.py32logger = 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
21 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.py324 # 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.py419 # 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.py252 # (e.g., when wrappers like openai-guardrails pass tools=None)COMMENT
MEDIUM…-instrumentation-openai/tests/traces/test_responses.py664 # Create a parent span (simulating what guardrails wrapper does)COMMENT
MEDIUM…-instrumentation-openai/tests/traces/test_responses.py736 # 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
MEDIUMpackages/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 Block5 hits · 4 pts
SeverityFileLineSnippetContext
LOW…in/opentelemetry/instrumentation/langchain/__init__.py201COMMENT
LOW…elemetry/instrumentation/langchain/callback_handler.py261COMMENT
LOW…try-instrumentation-langchain/tests/test_tool_calls.py41 # )COMMENT
LOW…oop-sdk/traceloop/sdk/utils/in_memory_span_exporter.py1# Copyright The OpenTelemetry AuthorsCOMMENT
LOW…entelemetry/instrumentation/pinecone/query_handlers.py1import jsonCOMMENT