Skip to content

ref(attributes): Enforce sentry conventions in AI integrations - #8407

Draft
srothh wants to merge 2 commits into
srothh/add-conventions-dependencyfrom
srothh/conventions-ai-integrations
Draft

srothh wants to merge 2 commits into
srothh/add-conventions-dependencyfrom
srothh/conventions-ai-integrations

Conversation

@srothh

@srothh srothh commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Description

Enforce sentry-conventions attribute names in AI integrations (anthropic, cohere, google_genai, huggingface_hub, litellm, mistral, openai, typesafe).

Issues

#8323
PY-3090

Enforce sentry-conventions attribute names in AI integrations (anthropic, cohere, google_genai, huggingface_hub, litellm, mistral, openai, typesafe).

#8323
PY-3090
@linear-code

linear-code Bot commented Nov 26, 2026

Copy link
Copy Markdown

PY-3090

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Coverage Results 📊

✅ 58889 passed | ❌ 2 failed | ⏭️ 3044 skipped | Total: 61935 | Pass Rate: 95.08% | Execution Time: 163m 22s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -641
Passed Tests 📉 -568
Failed Tests 📈 +2
Skipped Tests 📉 -75

➕ New Tests (1)

View new tests
  • test_headers[no headers]
    • File: tests.integrations.aws_lambda.test_aws_lambda
    • Status: ❌ Failing

❌ Failed Tests

test_headers[no headers]

File: tests.integrations.aws_lambda.test_aws_lambda
Suite: py3.13-aws_lambda
Error: ValueError: too many values to unpack (expected 1)

Stack Trace
tests/integrations/aws_lambda/test_aws_lambda.py:675: in test_headers
    (error_event,) = envelopes
    ^^^^^^^^^^^^^^
E   ValueError: too many values to unpack (expected 1)

✅ Patch coverage is 92.86% (78 of 84 changed executable lines covered; target 80%).
Project statement coverage is 90.12%.

Changed files with executable lines (10)
File Patch coverage Changed executable lines
sentry_sdk/integrations/anthropic.py 78.57% 11/14 covered; missed: 544, 546, 548
sentry_sdk/integrations/google_genai/streaming.py 33.33% 1/3 covered; missed: 117, 121
sentry_sdk/integrations/google_genai/utils.py 87.50% 7/8 covered; missed: 914
sentry_sdk/integrations/cohere.py 100.00% 1/1 covered
sentry_sdk/integrations/google_genai/init.py 100.00% 2/2 covered
sentry_sdk/integrations/huggingface_hub.py 100.00% 4/4 covered
sentry_sdk/integrations/litellm.py 100.00% 6/6 covered
sentry_sdk/integrations/mistral.py 100.00% 12/12 covered
sentry_sdk/integrations/openai.py 100.00% 28/28 covered
sentry_sdk/integrations/typesafe.py 100.00% 6/6 covered

Generated by Coverage Action

Enforce sentry-conventions attribute names in AI integration tests
(anthropic, cohere, google_genai, huggingface_hub, litellm, mistral, openai, typesafe).

#8323
PY-3090

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant