Skip to content

Comments

feat: add axiom log drain ANL-1184#41115

Merged
jordienr merged 9 commits intomasterfrom
jordi/axiom-logdrain
Feb 2, 2026
Merged

feat: add axiom log drain ANL-1184#41115
jordienr merged 9 commits intomasterfrom
jordi/axiom-logdrain

Conversation

@jordienr
Copy link
Member

@jordienr jordienr commented Dec 5, 2025

Summary by CodeRabbit

Release Notes

  • New Features

    • Added Axiom as a new log drain destination for telemetry data collection
    • Added Amazon S3 as a new log drain destination for log storage
    • Extended log drain configuration form with fields for S3 bucket credentials and Axiom API details
    • Added documentation for setting up Axiom log drain integration
  • Documentation

    • Added Axiom log drain setup guides with dataset creation and configuration steps

@jordienr jordienr requested review from a team as code owners December 5, 2025 15:44
@vercel
Copy link

vercel bot commented Dec 5, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
studio-self-hosted Ready Ready Preview, Comment Feb 2, 2026 10:35am
studio-staging Ready Ready Preview, Comment Feb 2, 2026 10:35am
6 Skipped Deployments
Project Deployment Actions Updated (UTC)
cms Ignored Ignored Feb 2, 2026 10:35am
studio Ignored Ignored Feb 2, 2026 10:35am
design-system Skipped Skipped Feb 2, 2026 10:35am
docs Skipped Skipped Feb 2, 2026 10:35am
ui-library Skipped Skipped Feb 2, 2026 10:35am
zone-www-dot-com Skipped Skipped Feb 2, 2026 10:35am

Request Review

@supabase
Copy link

supabase bot commented Dec 5, 2025

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Dec 5, 2025
@jordienr jordienr changed the title add axiom log drain add axiom log drain ANL-1184 Dec 5, 2025
@coveralls
Copy link

coveralls commented Dec 5, 2025

Coverage Status

coverage: 66.278%. remained the same
when pulling e4709be on jordi/axiom-logdrain
into f17f049 on master.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 5, 2025

🎭 Playwright Test Results

passed  85 passed
flaky  1 flaky
skipped  4 skipped

Details

stats  90 tests across 14 suites
duration  10 minutes, 35 seconds
commit  e4709be

Flaky tests

Features › table-editor.spec.ts › table editor › add enums and show enums on table

Skipped tests

Features › sql-editor.spec.ts › SQL Editor › snippet favourite works as expected
Features › sql-editor.spec.ts › SQL Editor › share with team works as expected
Features › sql-editor.spec.ts › SQL Editor › folders works as expected
Features › sql-editor.spec.ts › SQL Editor › other SQL snippets actions work as expected

@jordienr jordienr changed the title add axiom log drain ANL-1184 feat: add axiom log drain ANL-1184 Feb 2, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 2, 2026

Walkthrough

This PR adds support for Axiom and S3 log drain destinations, including form schema updates, feature flag gating, icon additions, and documentation. The changes extend the log drain system with new destination types and their associated UI components.

Changes

Cohort / File(s) Summary
Axiom and S3 Log Drain Schema & UI
apps/studio/components/interfaces/LogDrains/LogDrainDestinationSheetForm.tsx, apps/studio/components/interfaces/LogDrains/LogDrains.constants.tsx
Introduces new 'axiom' drain type with api_token and dataset_name fields; expands 's3' type with AWS credentials (access_key_id, secret_access_key), s3_bucket, storage_region, and batch_timeout. Updates form schema, default values, and UI input sections for both types.
Feature Flag Integration
apps/studio/components/interfaces/LogDrains/LogDrains.tsx, apps/studio/pages/project/[ref]/settings/log-drains.tsx
Adds S3logdrain and axiomLogDrain feature flags to conditionally display drain types in UI. Filters LOG_DRAIN_TYPES based on flag values. Updates dropdown and rendering logic to respect feature gating.
Icon Support
packages/icons/src/icons/axiom.ts, packages/icons/src/icons/index.ts, packages/icons/__registry__/index.tsx
Adds new Axiom icon component created via createSupabaseIcon with SVG path definition. Registers icon in the public icons registry and exports it for use in UI components.
Documentation
apps/docs/content/guides/telemetry/log-drains.mdx
Adds two identical Axiom log drain setup sections detailing dataset creation, API token configuration, Supabase log drain setup, and viewing logs in Axiom.
Telemetry Types
packages/common/telemetry-constants.ts
Widens destination field type in LogDrainSaveButtonClickedEvent and LogDrainConfirmButtonSubmittedEvent from strict union to generic string for flexibility.

Possibly related PRs

Suggested reviewers

  • awaseem
  • pamelachia
  • kemaldotearth
🚥 Pre-merge checks | ✅ 1 | ❌ 2
❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is extremely minimal (one bullet point) and does not follow the required template structure with sections for change type, current behavior, new behavior, or additional context. Follow the provided template by filling in sections: What kind of change, current behavior, new behavior, and additional context. Include details about the Axiom integration and reference to PR #40209.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (1 passed)
Check name Status Explanation
Title check ✅ Passed The title 'feat: add axiom log drain ANL-1184' clearly and specifically summarizes the main feature addition, which matches the extensive changes across multiple files to implement Axiom log drain functionality.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch jordi/axiom-logdrain

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In
`@apps/studio/components/interfaces/LogDrains/LogDrainDestinationSheetForm.tsx`:
- Around line 110-114: The Axiom API token is currently rendered as plain text;
update the LogDrainDestinationSheetForm to treat api_token as sensitive by
switching the form input for api_token to a password-style input
(type="password" or an Input component's secret/password prop) wherever it's
rendered for the 'axiom' destination (schema branch where type is
z.literal('axiom') and fields api_token), including the other occurrences
referenced (the other api_token input instances in the same component), and
ensure any show/hide toggle behavior preserves accessibility and validation tied
to the existing zod schema and form handlers (e.g., the form field name
'api_token' and validation messages remain unchanged).
🧹 Nitpick comments (1)
apps/docs/content/guides/telemetry/log-drains.mdx (1)

214-227: Optional: tighten wording for Axiom ingestion behavior.
The current phrasing is a bit awkward; consider clarifying the dataset and timestamp formatting in one sentence.

💡 Suggested wording tweak
-Logs sent to a specified Axiom's dataset as JSON of a raw log event,
-with timestamp modified to be parsed by ingestion endpoint.
+Logs are sent to the specified Axiom dataset as JSON, with the timestamp formatted for the ingestion endpoint.

@jordienr jordienr enabled auto-merge (squash) February 2, 2026 10:40
@jordienr jordienr merged commit c9c827b into master Feb 2, 2026
25 checks passed
@jordienr jordienr deleted the jordi/axiom-logdrain branch February 2, 2026 10:46
@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2026

Braintrust eval report

Assistant (master-1770029312)

Score Average Improvements Regressions
Completeness 91.7% (+0pp) 1 🟢 1 🔴
Conciseness 0% (+0pp) - -
Goal Completion 91.7% (-8pp) - 2 🔴
SQL Identifier Quoting 83.3% (-17pp) - 1 🔴
SQL Validity 100% (+0pp) - -
Tool Usage 100% (+0pp) - -
Correctness 100% (+0pp) - -
Docs Faithfulness 60% (+2pp) - -
URL Validity 100% (+0pp) - -
Time_to_first_token 0.13tok (-0.01tok) 6 🟢 6 🔴
Llm_calls 8.17 (-0.17) 2 🟢 3 🔴
Tool_calls 3 (+0.08) 1 🟢 1 🔴
Errors 0 (+0) - -
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 84575.67tok (-2081.67tok) 5 🟢 7 🔴
Prompt_cached_tokens 49173.33tok (-1920tok) 6 🟢 5 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Completion_tokens 5061.33tok (-829.17tok) 9 🟢 3 🔴
Completion_reasoning_tokens 3637.33tok (-682.67tok) 9 🟢 3 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 89637tok (-2910.83tok) 7 🟢 5 🔴
Estimated_cost 0.02$ (0$) 9 🟢 3 🔴
Duration 40.57s (-9.83s) 10 🟢 2 🔴
Llm_duration 80.27s (-19.47s) 10 🟢 2 🔴

awaseem pushed a commit that referenced this pull request Feb 3, 2026
- finished the axiom log drain started in #40209 

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

## Release Notes

* **New Features**
* Added Axiom as a new log drain destination for telemetry data
collection
  * Added Amazon S3 as a new log drain destination for log storage
* Extended log drain configuration form with fields for S3 bucket
credentials and Axiom API details
  * Added documentation for setting up Axiom log drain integration

* **Documentation**
* Added Axiom log drain setup guides with dataset creation and
configuration steps

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants