SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
chore: add ability to mark API stability as beta/alpha (#12957)
Naman Verma9d9b0e194a32
diff --git a/docs/api/openapi.yml b/docs/api/openapi.ymlindex 67d8fcb855..7c366ac060 100644--- a/docs/api/openapi.yml+++ b/docs/api/openapi.yml@@ -10671,6 +10671,7 @@ paths:summary: Get AI observability field keystags:- ai_observability+ x-signoz-stability: alpha/api/v1/ai_observability/fields/values:get:deprecated: false@@ -10753,6 +10754,7 @@ paths:summary: Get AI observability field valuestags:- ai_observability+ x-signoz-stability: alpha/api/v1/alerts:get:deprecated: false@@ -10801,6 +10803,7 @@ paths:summary: Get alertstags:- alerts+ x-signoz-stability: alpha/api/v1/authz/check:post:deprecated: false@@ -10839,6 +10842,7 @@ paths:summary: Check permissionstags:- authz+ x-signoz-stability: alpha/api/v1/channels:get:deprecated: false@@ -10887,6 +10891,7 @@ paths:summary: List notification channelstags:- channels+ x-signoz-stability: alphapost:deprecated: falsedescription: This endpoint creates a notification channel@@ -10943,6 +10948,7 @@ paths:summary: Create notification channeltags:- channels+ x-signoz-stability: alpha/api/v1/channels/{id}:delete:deprecated: false@@ -10989,6 +10995,7 @@ paths:summary: Delete notification channeltags:- channels+ x-signoz-stability: alphaget:deprecated: falsedescription: This endpoint returns a notification channel by ID@@ -11046,6 +11053,7 @@ paths:summary: Get notification channel by IDtags:- channels+ x-signoz-stability: alphaput:deprecated: falsedescription: This endpoint updates a notification channel by ID@@ -11102,6 +11110,7 @@ paths:summary: Update notification channeltags:- channels+ x-signoz-stability: alpha/api/v1/channels/test:post:deprecated: false@@ -11147,6 +11156,7 @@ paths:summary: Test notification channeltags:- channels+ x-signoz-stability: alpha/api/v1/cloud-integrations/{cloud_provider}/agent-check-in:post:deprecated: true@@ -11205,6 +11215,7 @@ paths:summary: Agent check-intags:- cloudintegration+ x-signoz-stability: alpha/api/v1/cloud_integrations/{cloud_provider}/accounts:get:deprecated: false@@ -11257,6 +11268,7 @@ paths:summary: List accountstags:- cloudintegration+ x-signoz-stability: alphapost:deprecated: falsedescription: This endpoint creates a new cloud integration account for the specified@@ -11314,6 +11326,7 @@ paths:summary: Create accounttags:- cloudintegration+ x-signoz-stability: alpha/api/v1/cloud_integrations/{cloud_provider}/accounts/{id}:delete:deprecated: false@@ -11359,6 +11372,7 @@ paths:summary: Disconnect accounttags:- cloudintegration+ x-signoz-stability: alphaget:deprecated: falsedescription: This endpoint gets an account for the specified cloud provider@@ -11427,6 +11441,7 @@ paths:summary: Get accounttags:- cloudintegration+ x-signoz-stability: alphaput:deprecated: falsedescription: This endpoint updates an account for the specified cloud provider@@ -11476,6 +11491,7 @@ paths:summary: Update accounttags:- cloudintegration+ x-signoz-stability: alpha/api/v1/cloud_integrations/{cloud_provider}/accounts/{id}/services:get:deprecated: false@@ -11534,6 +11550,7 @@ paths:summary: List account services metadatatags:- cloudintegration+ x-signoz-stability: alpha/api/v1/cloud_integrations/{cloud_provider}/accounts/{id}/services/{service_id}:get:deprecated: false@@ -11609,6 +11626,7 @@ paths:summary: Get service for accounttags:- cloudintegration+ x-signoz-stability: alphaput:deprecated: falsedescription: This endpoint updates a service for the specified cloud provider@@ -11663,6 +11681,7 @@ paths:summary: Update servicetags:- cloudintegration+ x-signoz-stability: alpha/api/v1/cloud_integrations/{cloud_provider}/accounts/check_in:post:deprecated: false@@ -11720,6 +11739,7 @@ paths:summary: Agent check-intags:- cloudintegration+ x-signoz-stability: alpha/api/v1/cloud_integrations/{cloud_provider}/credentials:get:deprecated: false@@ -11781,6 +11801,7 @@ paths:summary: Get connection credentialstags:- cloudintegration+ x-signoz-stability: alpha/api/v1/cloud_integrations/{cloud_provider}/services:get:deprecated: false@@ -11832,6 +11853,7 @@ paths:summary: List services metadatatags:- cloudintegration+ x-signoz-stability: alpha/api/v1/cloud_integrations/{cloud_provider}/services/{service_id}:get:deprecated: false@@ -11888,6 +11910,7 @@ paths:summary: Get servicetags:- cloudintegration+ x-signoz-stability: alpha/api/v1/complete/google:get:deprecated: false@@ -11929,6 +11952,7 @@ paths:summary: Create session by google callbacktags:- sessions+ x-signoz-stability: alpha/api/v1/complete/oidc:get:deprecated: false@@ -11976,6 +12000,7 @@ paths:summary: Create session by oidc callbacktags:- sessions+ x-signoz-stability: alpha/api/v1/complete/saml:post:deprecated: false@@ -12042,6 +12067,7 @@ paths:summary: Create session by saml callbacktags:- sessions+ x-signoz-stability: alpha/api/v1/dashboards/{id}/public:delete:deprecated: false@@ -12083,6 +12109,7 @@ paths:summary: Delete public dashboardtags:- dashboard+ x-signoz-stability: alphaget:deprecated: falsedescription: This endpoint returns public sharing config for a dashboard@@ -12134,6 +12161,7 @@ paths:summary: Get public dashboardtags:- dashboard+ x-signoz-stability: alphapost:deprecated: falsedescription: This endpoint creates public sharing config and enables public@@ -12191,6 +12219,7 @@ paths:summary: Create public dashboardtags:- dashboard+ x-signoz-stability: alphaput:deprecated: falsedescription: This endpoint updates the public sharing config for a dashboard@@ -12235,6 +12264,7 @@ paths:summary: Update public dashboardtags:- dashboard+ x-signoz-stability: alpha/api/v1/downtime_schedules:get:deprecated: false@@ -12294,6 +12324,7 @@ paths:summary: List downtime schedulestags:- downtimeschedules+ x-signoz-stability: alphapost:deprecated: falsedescription: This endpoint creates a new planned maintenance / downtime schedule@@ -12350,6 +12381,7 @@ paths:summary: Create downtime scheduletags:- downtimeschedules+ x-signoz-stability: alpha/api/v1/downtime_schedules/{id}:delete:deprecated: false@@ -12396,6 +12428,7 @@ paths:summary: Delete downtime scheduletags:- downtimeschedules+ x-signoz-stability: alphaget:deprecated: falsedescription: This endpoint returns a downtime schedule by ID@@ -12453,6 +12486,7 @@ paths:summary: Get downtime schedule by IDtags:- downtimeschedules+ x-signoz-stability: alphaput:deprecated: falsedescription: This endpoint updates a downtime schedule by ID@@ -12509,6 +12543,7 @@ paths:summary: Update downtime scheduletags:- downtimeschedules+ x-signoz-stability: alpha/api/v1/export_raw_data:post:deprecated: false@@ -12567,6 +12602,7 @@ paths:tags:- logs- traces+ x-signoz-stability: alpha/api/v1/fields/keys:get:deprecated: false@@ -12656,6 +12692,7 @@ paths:summary: Get field keystags:- fields+ x-signoz-stability: alpha/api/v1/fields/values:get:deprecated: false@@ -12753,6 +12790,7 @@ paths:summary: Get field valuestags:- fields+ x-signoz-stability: alpha/api/v1/global/config:get:deprecated: false@@ -12782,6 +12820,7 @@ paths:summary: Get global configtags:- global+ x-signoz-stability: alpha/api/v1/llm_pricing_rules:get:deprecated: false@@ -12852,6 +12891,7 @@ paths:summary: List pricing rulestags:- llmpricingrules+ x-signoz-stability: alphaput:deprecated: falsedescription: Single write endpoint used by both the user and the Zeus sync job.@@ -12898,6 +12938,7 @@ paths:summary: Create or update pricing rulestags:- llmpricingrules+ x-signoz-stability: alpha/api/v1/llm_pricing_rules/{id}:delete:deprecated: false@@ -12945,6 +12986,7 @@ paths:summary: Delete a pricing ruletags:- llmpricingrules+ x-signoz-stability: alphaget:deprecated: falsedescription: Returns a single LLM pricing rule by ID.@@ -13002,6 +13044,7 @@ paths:summary: Get a pricing ruletags:- llmpricingrules+ x-signoz-stability: alpha/api/v1/llm_pricing_rules/unmapped_models:get:deprecated: false@@ -13056,6 +13099,7 @@ paths:summary: List unmapped modelstags:- llmpricingrules+ x-signoz-stability: alpha/api/v1/logs/promote_paths:get:deprecated: false@@ -13111,6 +13155,7 @@ paths:summary: Promote and index pathstags:- logs+ x-signoz-stability: alphapost:deprecated: falsedescription: This endpoints promotes and indexes paths@@ -13158,6 +13203,7 @@ paths:summary: Promote and index pathstags:- logs+ x-signoz-stability: alpha/api/v1/org/preferences:get:deprecated: false@@ -13206,6 +13252,7 @@ paths:summary: List org preferencestags:- preferences+ x-signoz-stability: alpha/api/v1/org/preferences/{name}:get:deprecated: false@@ -13270,6 +13317,7 @@ paths:summary: Get org preferencetags:- preferences+ x-signoz-stability: alphaput:deprecated: falsedescription: This endpoint updates the org preference by name@@ -13326,6 +13374,7 @@ paths:summary: Update org preferencetags:- preferences+ x-signoz-stability: alpha/api/v1/roles:get:deprecated: false@@ -13374,6 +13423,7 @@ paths:summary: List rolestags:- role+ x-signoz-stability: alphapost:deprecated: falsedescription: This endpoint creates a role@@ -13448,6 +13498,7 @@ paths:summary: Create roletags:- role+ x-signoz-stability: alpha/api/v1/roles/{id}:delete:deprecated: false@@ -13506,6 +13557,7 @@ paths:summary: Delete roletags:- role+ x-signoz-stability: alphaget:deprecated: falsedescription: This endpoint gets a role@@ -13557,6 +13609,7 @@ paths:summary: Get roletags:- role+ x-signoz-stability: alphaput:deprecated: falsedescription: This endpoint updates a role@@ -13619,6 +13672,7 @@ paths:summary: Update roletags:- role+ x-signoz-stability: alpha/api/v1/route_policies:get:deprecated: false@@ -13667,6 +13721,7 @@ paths:summary: List route policiestags:- routepolicies+ x-signoz-stability: alphapost:deprecated: falsedescription: This endpoint creates a route policy@@ -13723,6 +13778,7 @@ paths:summary: Create route policytags:- routepolicies+ x-signoz-stability: alpha/api/v1/route_policies/{id}:delete:deprecated: false@@ -13769,6 +13825,7 @@ paths:summary: Delete route policytags:- routepolicies+ x-signoz-stability: alphaget:deprecated: falsedescription: This endpoint returns a route policy by ID@@ -13826,6 +13883,7 @@ paths:summary: Get route policy by IDtags:- routepolicies+ x-signoz-stability: alphaput:deprecated: falsedescription: This endpoint updates a route policy by ID@@ -13894,6 +13952,7 @@ paths:summary: Update route policytags:- routepolicies+ x-signoz-stability: alpha/api/v1/service_account_roles:post:deprecated: false@@ -13959,6 +14018,7 @@ paths:summary: Create service account roletags:- serviceaccount+ x-signoz-stability: alpha/api/v1/service_account_roles/{id}:delete:deprecated: false@@ -14013,6 +14073,7 @@ paths:summary: Delete service account roletags:- serviceaccount+ x-signoz-stability: alphaget:deprecated: falsedescription: This endpoint gets an existing service account role@@ -14076,6 +14137,7 @@ paths:summary: Get service account roletags:- serviceaccount+ x-signoz-stability: alpha/api/v1/service_accounts:get:deprecated: false@@ -14124,6 +14186,7 @@ paths:summary: List service accountstags:- serviceaccount+ x-signoz-stability: alphapost:deprecated: falsedescription: This endpoint creates a service account@@ -14186,6 +14249,7 @@ paths:summary: Create service accounttags:- serviceaccount+ x-signoz-stability: alpha/api/v1/service_accounts/{id}:delete:deprecated: false@@ -14232,6 +14296,7 @@ paths:summary: Deletes a service accounttags:- serviceaccount+ x-signoz-stability: alphaget:deprecated: falsedescription: This endpoint gets an existing service account@@ -14289,6 +14354,7 @@ paths:summary: Gets a service accounttags:- serviceaccount+ x-signoz-stability: alphaput:deprecated: falsedescription: This endpoint updates an existing service account@@ -14345,6 +14411,7 @@ paths:summary: Updates a service accounttags:- serviceaccount+ x-signoz-stability: alpha/api/v1/service_accounts/{id}/keys:get:deprecated: false@@ -14399,6 +14466,7 @@ paths:summary: List service account keystags:- serviceaccount+ x-signoz-stability: alphapost:deprecated: falsedescription: This endpoint creates a service account key@@ -14469,6 +14537,7 @@ paths:summary: Create a service account keytags:- serviceaccount+ x-signoz-stability: alpha/api/v1/service_accounts/{id}/keys/{fid}:delete:deprecated: false@@ -14522,6 +14591,7 @@ paths:summary: Revoke a service account keytags:- serviceaccount+ x-signoz-stability: alphaput:deprecated: falsedescription: This endpoint updates an existing service account key@@ -14583,6 +14653,7 @@ paths:summary: Updates a service account keytags:- serviceaccount+ x-signoz-stability: alpha/api/v1/service_accounts/{id}/roles:get:deprecated: false@@ -14644,6 +14715,7 @@ paths:summary: Gets service account rolestags:- serviceaccount+ x-signoz-stability: alpha/api/v1/service_accounts/me:get:deprecated: false@@ -14679,6 +14751,7 @@ paths:summary: Gets my service accounttags:- serviceaccount+ x-signoz-stability: alphaput:deprecated: falsedescription: This endpoint gets my service account@@ -14706,6 +14779,7 @@ paths:summary: Updates my service accounttags:- serviceaccount+ x-signoz-stability: alpha/api/v1/span_mapper_groups:get:deprecated: false@@ -14765,6 +14839,7 @@ paths:summary: List span attribute mapping groupstags:- spanmapper+ x-signoz-stability: alphapost:deprecated: falsedescription: Creates a new span attribute mapping group for the org.@@ -14827,6 +14902,7 @@ paths:summary: Create a span attribute mapping grouptags:- spanmapper+ x-signoz-stability: alpha/api/v1/span_mapper_groups/{groupId}:delete:deprecated: false@@ -14873,6 +14949,7 @@ paths:summary: Delete a span attribute mapping grouptags:- spanmapper+ x-signoz-stability: alphapatch:deprecated: falsedescription: Partially updates an existing mapping group's name, condition,@@ -14930,6 +15007,7 @@ paths:summary: Update a span attribute mapping grouptags:- spanmapper+ x-signoz-stability: alpha/api/v1/span_mapper_groups/{groupId}/span_mappers:get:deprecated: false@@ -14994,6 +15072,7 @@ paths:summary: List span mappers for a grouptags:- spanmapper+ x-signoz-stability: alphapost:deprecated: falsedescription: Adds a new mapper to the specified mapping group.@@ -15068,6 +15147,7 @@ paths:summary: Create a span mappertags:- spanmapper+ x-signoz-stability: alpha/api/v1/span_mapper_groups/{groupId}/span_mappers/{mapperId}:delete:deprecated: false@@ -15119,6 +15199,7 @@ paths:summary: Delete a span mappertags:- spanmapper+ x-signoz-stability: alphapatch:deprecated: falsedescription: Partially updates an existing mapper's field context, config, or@@ -15181,6 +15262,7 @@ paths:summary: Update a span mappertags:- spanmapper+ x-signoz-stability: alpha/api/v1/span_mapper_groups/test:post:deprecated: false@@ -15244,6 +15326,7 @@ paths:summary: Test span mappers against sample spanstags:- spanmapper+ x-signoz-stability: alpha/api/v1/stats:get:deprecated: false@@ -15291,6 +15374,7 @@ paths:summary: Get statstags:- stats+ x-signoz-stability: alpha/api/v1/subscriptions:get:deprecated: false@@ -15350,6 +15434,7 @@ paths:summary: Get the subscription.tags:- subscriptions+ x-signoz-stability: alphapost:deprecated: falsedescription: This endpoint creates a subscription for the organization.@@ -15418,6 +15503,7 @@ paths:summary: Create a subscription.tags:- subscriptions+ x-signoz-stability: alphaput:deprecated: falsedescription: This endpoint updates the organization's subscription.@@ -15482,6 +15568,7 @@ paths:summary: Update the subscription.tags:- subscriptions+ x-signoz-stability: alpha/api/v1/testChannel:post:deprecated: true@@ -15527,6 +15614,7 @@ paths:summary: Test notification channel (deprecated)tags:- channels+ x-signoz-stability: alpha/api/v1/traces/{traceID}/aggregations:post:deprecated: false@@ -15596,6 +15684,7 @@ paths:summary: Get aggregations for a tracetags:- tracedetail+ x-signoz-stability: alpha/api/v1/user/me:get:deprecated: true@@ -15634,6 +15723,7 @@ paths:summary: Get my usertags:- users+ x-signoz-stability: alpha/api/v1/user/preferences:get:deprecated: false@@ -15682,6 +15772,7 @@ paths:summary: List user preferencestags:- preferences+ x-signoz-stability: alpha/api/v1/user/preferences/{name}:get:deprecated: false@@ -15740,6 +15831,7 @@ paths:summary: Get user preferencetags:- preferences+ x-signoz-stability: alphaput:deprecated: falsedescription: This endpoint updates the user preference by name@@ -15796,6 +15888,7 @@ paths:summary: Update user preferencetags:- preferences+ x-signoz-stability: alpha/api/v2/auth_domains:get:deprecated: false@@ -15844,6 +15937,7 @@ paths:summary: List all auth domainstags:- authdomains+ x-signoz-stability: alphapost:deprecated: falsedescription: This endpoint creates an auth domain@@ -15910,6 +16004,7 @@ paths:summary: Create auth domaintags:- authdomains+ x-signoz-stability: alpha/api/v2/auth_domains/{id}:delete:deprecated: false@@ -15956,6 +16051,7 @@ paths:summary: Delete auth domaintags:- authdomains+ x-signoz-stability: alphaget:deprecated: falsedescription: This endpoint returns an auth domain by ID@@ -16013,6 +16109,7 @@ paths:summary: Get auth domain by IDtags:- authdomains+ x-signoz-stability: alphaput:deprecated: falsedescription: This endpoint updates an auth domain@@ -16077,6 +16174,7 @@ paths:summary: Update auth domaintags:- authdomains+ x-signoz-stability: alpha/api/v2/dashboard_views:get:deprecated: false@@ -16124,6 +16222,7 @@ paths:summary: List dashboard saved viewstags:- dashboard+ x-signoz-stability: alphapost:deprecated: falsedescription: Persists the calling user's dashboard listing state (query, sort,@@ -16181,6 +16280,7 @@ paths:summary: Create dashboard saved viewtags:- dashboard+ x-signoz-stability: alpha/api/v2/dashboard_views/{id}:delete:deprecated: false@@ -16234,6 +16334,7 @@ paths:summary: Delete dashboard saved viewtags:- dashboard+ x-signoz-stability: alphaput:deprecated: falsedescription: Replaces a saved view's name and data. Saved views are shared org-wide.@@ -16302,6 +16403,7 @@ paths:summary: Update dashboard saved viewtags:- dashboard+ x-signoz-stability: alpha/api/v2/dashboards:get:deprecated: false@@ -16379,6 +16481,7 @@ paths:summary: List dashboards (v2)tags:- dashboard+ x-signoz-stability: alphapost:deprecated: falsedescription: This endpoint creates a dashboard in the v2 format that follows@@ -16436,6 +16539,7 @@ paths:summary: Create dashboard (v2)tags:- dashboard+ x-signoz-stability: alpha/api/v2/dashboards/{id}:delete:deprecated: false@@ -16489,6 +16593,7 @@ paths:summary: Delete dashboard (v2)tags:- dashboard+ x-signoz-stability: alphaget:deprecated: falsedescription: This endpoint returns a v2-shape dashboard.@@ -16552,6 +16657,7 @@ paths:summary: Get dashboard (v2)tags:- dashboard+ x-signoz-stability: alphapatch:deprecated: falsedescription: 'This endpoint applies an RFC 6902 JSON Patch to a v2-shape dashboard.@@ -16626,6 +16732,7 @@ paths:summary: Patch dashboard (v2)tags:- dashboard+ x-signoz-stability: alphaput:deprecated: falsedescription: This endpoint updates a v2-shape dashboard's metadata, data, and@@ -16695,6 +16802,7 @@ paths:summary: Update dashboard (v2)tags:- dashboard+ x-signoz-stability: alpha/api/v2/dashboards/{id}/clone:post:deprecated: false@@ -16765,6 +16873,7 @@ paths:summary: Clone dashboard (v2)tags:- dashboard+ x-signoz-stability: alpha/api/v2/dashboards/{id}/lock:delete:deprecated: false@@ -16818,6 +16927,7 @@ paths:summary: Unlock dashboard (v2)tags:- dashboard+ x-signoz-stability: alphaput:deprecated: falsedescription: This endpoint locks a v2-shape dashboard. Only the dashboard's@@ -16870,6 +16980,7 @@ paths:summary: Lock dashboard (v2)tags:- dashboard+ x-signoz-stability: alpha/api/v2/dashboards/{id}/migrate:post:deprecated: false@@ -16936,6 +17047,7 @@ paths:summary: Migrate dashboard to v2tags:- dashboard+ x-signoz-stability: alpha/api/v2/dashboards/system/{name}:get:deprecated: false@@ -17003,6 +17115,7 @@ paths:summary: Get system dashboardtags:- dashboard+ x-signoz-stability: alpha/api/v2/factor_password/forgot:post:deprecated: false@@ -17038,6 +17151,7 @@ paths:summary: Forgot passwordtags:- users+ x-signoz-stability: alpha/api/v2/factor_password/reset:post:deprecated: false@@ -17073,6 +17187,7 @@ paths:summary: Reset passwordtags:- users+ x-signoz-stability: alpha/api/v2/features:get:deprecated: false@@ -17119,6 +17234,7 @@ paths:summary: Get featurestags:- features+ x-signoz-stability: alpha/api/v2/gateway/ingestion_keys:get:deprecated: false@@ -17174,6 +17290,7 @@ paths:summary: Get ingestion keys for workspacetags:- gateway+ x-signoz-stability: alphapost:deprecated: falsedescription: This endpoint creates an ingestion key for the workspace@@ -17224,6 +17341,7 @@ paths:summary: Create ingestion key for workspacetags:- gateway+ x-signoz-stability: alpha/api/v2/gateway/ingestion_keys/{keyId}:delete:deprecated: false@@ -17264,6 +17382,7 @@ paths:summary: Delete ingestion key for workspacetags:- gateway+ x-signoz-stability: alphaget:deprecated: falsedescription: This endpoint returns an ingestion key for the workspace@@ -17321,6 +17440,7 @@ paths:summary: Get ingestion key for workspacetags:- gateway+ x-signoz-stability: alphapatch:deprecated: falsedescription: This endpoint updates an ingestion key for the workspace@@ -17365,6 +17485,7 @@ paths:summary: Update ingestion key for workspacetags:- gateway+ x-signoz-stability: alpha/api/v2/gateway/ingestion_keys/{keyId}/limits:get:deprecated: false@@ -17426,6 +17547,7 @@ paths:summary: Get limits for the ingestion keytags:- gateway+ x-signoz-stability: alphapost:deprecated: truedescription: This endpoint creates an ingestion key limit.@@ -17484,6 +17606,7 @@ paths:summary: Create limit for the ingestion keytags:- gateway+ x-signoz-stability: alpha/api/v2/gateway/ingestion_keys/limits/{limitId}:delete:deprecated: true@@ -17526,6 +17649,7 @@ paths:summary: Delete limit for the ingestion keytags:- gateway+ x-signoz-stability: alphapatch:deprecated: truedescription: This endpoint updates an ingestion key limit.@@ -17570,6 +17694,7 @@ paths:summary: Update limit for the ingestion keytags:- gateway+ x-signoz-stability: alpha/api/v2/gateway/ingestion_keys/search:get:deprecated: false@@ -17630,6 +17755,7 @@ paths:summary: Search ingestion keys for workspacetags:- gateway+ x-signoz-stability: alpha/api/v2/gateway/ingestion_limits:post:deprecated: false@@ -17690,6 +17816,7 @@ paths:summary: Create ingestion limittags:- gateway+ x-signoz-stability: alpha/api/v2/gateway/ingestion_limits/{limitId}:delete:deprecated: false@@ -17732,6 +17859,7 @@ paths:summary: Delete ingestion limittags:- gateway+ x-signoz-stability: alphaget:deprecated: falsedescription: This endpoint returns an ingestion limit@@ -17789,6 +17917,7 @@ paths:summary: Get ingestion limittags:- gateway+ x-signoz-stability: alphapatch:deprecated: falsedescription: This endpoint updates an ingestion limit@@ -17833,6 +17962,7 @@ paths:summary: Update ingestion limittags:- gateway+ x-signoz-stability: alpha/api/v2/healthz:get:operationId: Healthz@@ -17868,6 +17998,7 @@ paths:summary: Health checktags:- health+ x-signoz-stability: alpha/api/v2/infra_monitoring/checks:get:deprecated: false@@ -17934,6 +18065,7 @@ paths:summary: Run Infra Monitoring Setup Checkstags:- inframonitoring+ x-signoz-stability: alpha/api/v2/infra_monitoring/clusters:post:deprecated: false@@ -18007,6 +18139,7 @@ paths:summary: List Clusters for Infra Monitoringtags:- inframonitoring+ x-signoz-stability: alpha/api/v2/infra_monitoring/daemonsets:post:deprecated: false@@ -18090,6 +18223,7 @@ paths:summary: List DaemonSets for Infra Monitoringtags:- inframonitoring+ x-signoz-stability: alpha/api/v2/infra_monitoring/deployments:post:deprecated: false@@ -18167,6 +18301,7 @@ paths:summary: List Deployments for Infra Monitoringtags:- inframonitoring+ x-signoz-stability: alpha/api/v2/infra_monitoring/hosts:post:deprecated: false@@ -18234,6 +18369,7 @@ paths:summary: List Hosts for Infra Monitoringtags:- inframonitoring+ x-signoz-stability: alpha/api/v2/infra_monitoring/jobs:post:deprecated: false@@ -18315,6 +18451,7 @@ paths:summary: List Jobs for Infra Monitoringtags:- inframonitoring+ x-signoz-stability: alpha/api/v2/infra_monitoring/kube_containers:post:deprecated: false@@ -18395,6 +18532,7 @@ paths:summary: List Kubernetes Containers for Infra Monitoringtags:- inframonitoring+ x-signoz-stability: alpha/api/v2/infra_monitoring/namespaces:post:deprecated: false@@ -18465,6 +18603,7 @@ paths:summary: List Namespaces for Infra Monitoringtags:- inframonitoring+ x-signoz-stability: alpha/api/v2/infra_monitoring/nodes:post:deprecated: false@@ -18539,6 +18678,7 @@ paths:summary: List Nodes for Infra Monitoringtags:- inframonitoring+ x-signoz-stability: alpha/api/v2/infra_monitoring/pods:post:deprecated: false@@ -18614,6 +18754,7 @@ paths:summary: List Pods for Infra Monitoringtags:- inframonitoring+ x-signoz-stability: alpha/api/v2/infra_monitoring/pvcs:post:deprecated: false@@ -18684,6 +18825,7 @@ paths:summary: List Volumes for Infra Monitoringtags:- inframonitoring+ x-signoz-stability: alpha/api/v2/infra_monitoring/statefulsets:post:deprecated: false@@ -18761,6 +18903,7 @@ paths:summary: List StatefulSets for Infra Monitoringtags:- inframonitoring+ x-signoz-stability: alpha/api/v2/livez:get:deprecated: false@@ -18790,6 +18933,7 @@ paths:summary: Liveness checktags:- health+ x-signoz-stability: alpha/api/v2/metric_reduction_rules:get:deprecated: false@@ -18873,6 +19017,7 @@ paths:summary: List metric reduction rulestags:- metrics+ x-signoz-stability: alphapost:deprecated: falsedescription: Creates a volume-control rule for a metric and returns it with@@ -18948,6 +19093,7 @@ paths:summary: Create a metric reduction ruletags:- metrics+ x-signoz-stability: alpha/api/v2/metric_reduction_rules/{id}:delete:deprecated: false@@ -19006,6 +19152,7 @@ paths:summary: Delete a metric reduction rule by idtags:- metrics+ x-signoz-stability: alphaget:deprecated: falsedescription: Returns a single volume-control rule by its id.@@ -19075,6 +19222,7 @@ paths:summary: Get a metric reduction rule by idtags:- metrics+ x-signoz-stability: alphaput:deprecated: falsedescription: Updates the match type and labels of a volume-control rule by its@@ -19156,6 +19304,7 @@ paths:summary: Update a metric reduction rule by idtags:- metrics+ x-signoz-stability: alpha/api/v2/metric_reduction_rules/preview:post:deprecated: false@@ -19232,6 +19381,7 @@ paths:summary: Preview a metric reduction ruletags:- metrics+ x-signoz-stability: alpha/api/v2/metric_reduction_rules/stats:get:deprecated: false@@ -19291,6 +19441,7 @@ paths:summary: Metric reduction statstags:- metrics+ x-signoz-stability: alpha/api/v2/metric_reduction_rules/timeseries:get:deprecated: false@@ -19350,6 +19501,7 @@ paths:summary: Metric reduction volume over timetags:- metrics+ x-signoz-stability: alpha/api/v2/metrics:get:deprecated: false@@ -19426,6 +19578,7 @@ paths:summary: List metric namestags:- metrics+ x-signoz-stability: alpha/api/v2/metrics/alerts:get:deprecated: false@@ -19494,6 +19647,7 @@ paths:summary: Get metric alertstags:- metrics+ x-signoz-stability: alpha/api/v2/metrics/attributes:get:deprecated: false@@ -19577,6 +19731,7 @@ paths:summary: Get metric attributestags:- metrics+ x-signoz-stability: alpha/api/v2/metrics/highlights:get:deprecated: false@@ -19646,6 +19801,7 @@ paths:summary: Get metric highlightstags:- metrics+ x-signoz-stability: alpha/api/v2/metrics/inspect:post:deprecated: false@@ -19704,6 +19860,7 @@ paths:summary: Inspect raw metric data pointstags:- metrics+ x-signoz-stability: alpha/api/v2/metrics/metadata:get:deprecated: false@@ -19773,6 +19930,7 @@ paths:summary: Get metric metadatatags:- metrics+ x-signoz-stability: alphapost:deprecated: falsedescription: This endpoint helps to update metadata information like metric@@ -19818,6 +19976,7 @@ paths:summary: Update metric metadatatags:- metrics+ x-signoz-stability: alpha/api/v2/metrics/onboarding:get:deprecated: false@@ -19865,6 +20024,7 @@ paths:summary: Check if non-SigNoz metrics have been receivedtags:- metrics+ x-signoz-stability: alpha/api/v2/metrics/stats:post:deprecated: false@@ -19923,6 +20083,7 @@ paths:summary: Get metrics statisticstags:- metrics+ x-signoz-stability: alpha/api/v2/metrics/treemap:post:deprecated: false@@ -19981,6 +20142,7 @@ paths:summary: Get metrics treemaptags:- metrics+ x-signoz-stability: alpha/api/v2/notification_channels:get:deprecated: false@@ -20062,6 +20224,7 @@ paths:summary: List notification channelstags:- channels+ x-signoz-stability: developmentpost:deprecated: falsedescription: This endpoint creates a notification channel@@ -20124,6 +20287,7 @@ paths:summary: Create notification channeltags:- channels+ x-signoz-stability: development/api/v2/notification_channels/{id}:delete:deprecated: false@@ -20176,6 +20340,7 @@ paths:summary: Delete notification channeltags:- channels+ x-signoz-stability: developmentget:deprecated: falsedescription: This endpoint returns a notification channel by ID. A channel written@@ -20240,6 +20405,7 @@ paths:summary: Get notification channel by IDtags:- channels+ x-signoz-stability: developmentput:deprecated: falsedescription: 'This endpoint replaces a notification channel''s configuration@@ -20310,6 +20476,7 @@ paths:summary: Update notification channeltags:- channels+ x-signoz-stability: development/api/v2/notification_channels/{id}/repair:post:deprecated: false@@ -20389,6 +20556,7 @@ paths:summary: Repair notification channeltags:- channels+ x-signoz-stability: development/api/v2/notification_channels/test:post:deprecated: false@@ -20436,6 +20604,7 @@ paths:summary: Test notification channeltags:- channels+ x-signoz-stability: development/api/v2/orgs/me:get:deprecated: false@@ -20482,6 +20651,7 @@ paths:summary: Get my organizationtags:- orgs+ x-signoz-stability: alphaput:deprecated: falsedescription: This endpoint updates the organization I belong to@@ -20532,6 +20702,7 @@ paths:summary: Update my organizationtags:- orgs+ x-signoz-stability: alpha/api/v2/public/dashboards/{id}:get:deprecated: false@@ -20596,6 +20767,7 @@ paths:summary: Get public dashboard data (v2)tags:- dashboard+ x-signoz-stability: alpha/api/v2/public/dashboards/{id}/panels/{key}/query_range:get:deprecated: false@@ -20674,6 +20846,7 @@ paths:summary: Get query range result (v2)tags:- dashboard+ x-signoz-stability: alpha/api/v2/quick_filters:get:deprecated: false@@ -20729,6 +20902,7 @@ paths:summary: List quick filterstags:- quick_filter+ x-signoz-stability: alpha/api/v2/quick_filters/{source}:get:deprecated: false@@ -20788,6 +20962,7 @@ paths:summary: Get a source's quick filterstags:- quick_filter+ x-signoz-stability: alphaput:deprecated: falsedescription: Replaces the org's quick filters for the source named in the path.@@ -20838,6 +21013,7 @@ paths:summary: Update quick filterstags:- quick_filter+ x-signoz-stability: alpha/api/v2/readyz:get:operationId: Readyz@@ -20873,6 +21049,7 @@ paths:summary: Readiness checktags:- health+ x-signoz-stability: alpha/api/v2/reset_password_tokens/verify:post:deprecated: false@@ -20908,6 +21085,7 @@ paths:summary: Verify a reset password tokentags:- users+ x-signoz-stability: alpha/api/v2/roles/{id}/users:get:deprecated: false@@ -20968,6 +21146,7 @@ paths:summary: Get users by role idtags:- users+ x-signoz-stability: alpha/api/v2/rules:get:deprecated: true@@ -21018,6 +21197,7 @@ paths:summary: List alert rulestags:- rules+ x-signoz-stability: alphapost:deprecated: falsedescription: This endpoint creates a new alert rule@@ -21858,6 +22038,7 @@ paths:summary: Create alert ruletags:- rules+ x-signoz-stability: alpha/api/v2/rules/{id}:delete:deprecated: false@@ -21904,6 +22085,7 @@ paths:summary: Delete alert ruletags:- rules+ x-signoz-stability: alphaget:deprecated: falsedescription: This endpoint returns an alert rule by ID@@ -21961,6 +22143,7 @@ paths:summary: Get alert rule by IDtags:- rules+ x-signoz-stability: alphapatch:deprecated: falsedescription: This endpoint applies a partial update to an alert rule by ID@@ -22813,6 +22996,7 @@ paths:summary: Patch alert ruletags:- rules+ x-signoz-stability: alphaput:deprecated: falsedescription: This endpoint updates an alert rule by ID@@ -23653,6 +23837,7 @@ paths:summary: Update alert ruletags:- rules+ x-signoz-stability: alpha/api/v2/rules/{id}/history/filter_keys:get:deprecated: false@@ -23754,6 +23939,7 @@ paths:summary: Get rule history filter keystags:- rules+ x-signoz-stability: alpha/api/v2/rules/{id}/history/filter_values:get:deprecated: false@@ -23863,6 +24049,7 @@ paths:summary: Get rule history filter valuestags:- rules+ x-signoz-stability: alpha/api/v2/rules/{id}/history/overall_status:get:deprecated: false@@ -23937,6 +24124,7 @@ paths:summary: Get rule overall status timelinetags:- rules+ x-signoz-stability: alpha/api/v2/rules/{id}/history/stats:get:deprecated: false@@ -24008,6 +24196,7 @@ paths:summary: Get rule history statstags:- rules+ x-signoz-stability: alpha/api/v2/rules/{id}/history/timeline:get:deprecated: false@@ -24099,6 +24288,7 @@ paths:summary: Get rule history timelinetags:- rules+ x-signoz-stability: alpha/api/v2/rules/{id}/history/top_contributors:get:deprecated: false@@ -24173,6 +24363,7 @@ paths:summary: Get top contributors to rule firingtags:- rules+ x-signoz-stability: alpha/api/v2/rules/test:post:deprecated: false@@ -25014,6 +25205,7 @@ paths:summary: Test alert ruletags:- rules+ x-signoz-stability: alpha/api/v2/saved_views:get:deprecated: false@@ -25078,6 +25270,7 @@ paths:summary: List saved viewstags:- saved_view+ x-signoz-stability: alphapost:deprecated: falsedescription: Persists a saved view for the explore page. Returns the id of the@@ -25141,6 +25334,7 @@ paths:summary: Create saved viewtags:- saved_view+ x-signoz-stability: alpha/api/v2/saved_views/{id}:delete:deprecated: false@@ -25193,6 +25387,7 @@ paths:summary: Delete saved viewtags:- saved_view+ x-signoz-stability: alphaget:deprecated: falsedescription: Returns a saved view by id.@@ -25256,6 +25451,7 @@ paths:summary: Get saved viewtags:- saved_view+ x-signoz-stability: alphaput:deprecated: falsedescription: Replaces a saved view's name and query.@@ -25312,6 +25508,7 @@ paths:summary: Update saved viewtags:- saved_view+ x-signoz-stability: alpha/api/v2/sessions:delete:deprecated: false@@ -25349,6 +25546,7 @@ paths:summary: Delete sessiontags:- sessions+ x-signoz-stability: alpha/api/v2/sessions/context:get:deprecated: false@@ -25384,6 +25582,7 @@ paths:summary: Get session contexttags:- sessions+ x-signoz-stability: alpha/api/v2/sessions/email_password:post:deprecated: false@@ -25430,6 +25629,7 @@ paths:summary: Create session by email and passwordtags:- sessions+ x-signoz-stability: alpha/api/v2/sessions/rotate:post:deprecated: false@@ -25470,6 +25670,7 @@ paths:summary: Rotate sessiontags:- sessions+ x-signoz-stability: alpha/api/v2/user_roles:post:deprecated: false@@ -25533,6 +25734,7 @@ paths:summary: Create user roletags:- users+ x-signoz-stability: alpha/api/v2/user_roles/{id}:delete:deprecated: false@@ -25585,6 +25787,7 @@ paths:summary: Delete user roletags:- users+ x-signoz-stability: alphaget:deprecated: falsedescription: This endpoint gets an existing user role@@ -25648,6 +25851,7 @@ paths:summary: Get user roletags:- users+ x-signoz-stability: alpha/api/v2/users:get:deprecated: false@@ -25696,6 +25900,7 @@ paths:summary: List users v2tags:- users+ x-signoz-stability: alphapost:deprecated: falsedescription: This endpoint creates a user for the organization@@ -25758,6 +25963,7 @@ paths:summary: Create usertags:- users+ x-signoz-stability: alpha/api/v2/users/{id}:delete:deprecated: false@@ -25804,6 +26010,7 @@ paths:summary: Delete usertags:- users+ x-signoz-stability: alphaget:deprecated: falsedescription: This endpoint returns the user by id@@ -25861,6 +26068,7 @@ paths:summary: Get user by user idtags:- users+ x-signoz-stability: alphaput:deprecated: falsedescription: This endpoint updates the user by id@@ -25917,6 +26125,7 @@ paths:summary: Update user v2tags:- users+ x-signoz-stability: alpha/api/v2/users/{id}/reset_password_tokens:get:deprecated: false@@ -25975,6 +26184,7 @@ paths:summary: Get reset password token for a usertags:- users+ x-signoz-stability: alphaput:deprecated: falsedescription: This endpoint creates or regenerates a reset password token for@@ -26040,6 +26250,7 @@ paths:summary: Create or regenerate reset password token for a usertags:- users+ x-signoz-stability: alpha/api/v2/users/{id}/roles:get:deprecated: false@@ -26100,6 +26311,7 @@ paths:summary: Get user rolestags:- users+ x-signoz-stability: alpha/api/v2/users/me:get:deprecated: false@@ -26143,6 +26355,7 @@ paths:summary: Get my user v2tags:- users+ x-signoz-stability: alphaput:deprecated: falsedescription: This endpoint updates the user I belong to@@ -26178,6 +26391,7 @@ paths:summary: Update my user v2tags:- users+ x-signoz-stability: alpha/api/v2/users/me/dashboards:get:deprecated: false@@ -26254,6 +26468,7 @@ paths:summary: List dashboards for the current user (v2)tags:- dashboard+ x-signoz-stability: alpha/api/v2/users/me/dashboards/{id}/pins:delete:deprecated: false@@ -26301,6 +26516,7 @@ paths:summary: Unpin a dashboard for the current user (v2)tags:- dashboard+ x-signoz-stability: alphaput:deprecated: falsedescription: Pins the dashboard for the calling user. A user can pin at most@@ -26360,6 +26576,7 @@ paths:summary: Pin a dashboard for the current user (v2)tags:- dashboard+ x-signoz-stability: alpha/api/v2/users/me/factor_password:put:deprecated: false@@ -26411,6 +26628,7 @@ paths:summary: Updates my passwordtags:- users+ x-signoz-stability: alpha/api/v2/zeus/hosts:get:deprecated: false@@ -26469,6 +26687,7 @@ paths:summary: Get host info from Zeus.tags:- zeus+ x-signoz-stability: alphaput:deprecated: falsedescription: This endpoint saves the host of a deployment to zeus.@@ -26525,6 +26744,7 @@ paths:summary: Put host in Zeus for a deployment.tags:- zeus+ x-signoz-stability: alpha/api/v2/zeus/profiles:put:deprecated: false@@ -26582,6 +26802,7 @@ paths:summary: Put profile in Zeus for a deployment.tags:- zeus+ x-signoz-stability: alpha/api/v3/licenses:post:deprecated: true@@ -26640,6 +26861,7 @@ paths:summary: Activate a license.tags:- licenses+ x-signoz-stability: alphaput:deprecated: truedescription: This endpoint refreshes the active license of the organization@@ -26686,6 +26908,7 @@ paths:summary: Refresh a license.tags:- licenses+ x-signoz-stability: alpha/api/v3/metrics/dashboards:get:deprecated: false@@ -26755,6 +26978,7 @@ paths:summary: Get metric dashboards (v2)tags:- metrics+ x-signoz-stability: alpha/api/v3/rules:get:deprecated: false@@ -26842,6 +27066,7 @@ paths:summary: List alert rules (v3)tags:- rules+ x-signoz-stability: alpha/api/v3/traces/{traceID}/flamegraph:post:deprecated: false@@ -26911,6 +27136,7 @@ paths:summary: Get flamegraph view for a tracetags:- tracedetail+ x-signoz-stability: alpha/api/v4/licenses:get:deprecated: false@@ -26965,6 +27191,7 @@ paths:summary: List licenses.tags:- licenses+ x-signoz-stability: alphapost:deprecated: falsedescription: This endpoint validates the license key with the upstream server@@ -27034,6 +27261,7 @@ paths:summary: Activate a license.tags:- licenses+ x-signoz-stability: alpha/api/v4/licenses/{id}:delete:deprecated: false@@ -27087,6 +27315,7 @@ paths:summary: Delete a license.tags:- licenses+ x-signoz-stability: alphaget:deprecated: falsedescription: This endpoint gets the license by id.@@ -27150,6 +27379,7 @@ paths:summary: Get a license.tags:- licenses+ x-signoz-stability: alphaput:deprecated: falsedescription: This endpoint refreshes the active license of the organization@@ -27202,6 +27432,7 @@ paths:summary: Refresh a license.tags:- licenses+ x-signoz-stability: alpha/api/v4/licenses/active:get:deprecated: false@@ -27264,6 +27495,7 @@ paths:summary: Get the active license.tags:- licenses+ x-signoz-stability: alpha/api/v4/traces/{traceID}/waterfall:post:deprecated: false@@ -27335,6 +27567,7 @@ paths:summary: Get waterfall view for a tracetags:- tracedetail+ x-signoz-stability: alpha/api/v5/query_range:post:deprecated: false@@ -27741,6 +27974,7 @@ paths:summary: Query rangetags:- querier+ x-signoz-stability: alpha/api/v5/query_range/preview:post:deprecated: false@@ -27818,6 +28052,7 @@ paths:summary: Query range previewtags:- querier+ x-signoz-stability: alpha/api/v5/substitute_vars:post:deprecated: false@@ -27875,6 +28110,7 @@ paths:summary: Replace variablestags:- querier+ x-signoz-stability: alpha/prometheus/api/v1/query:get:description: 'Prometheus-compatible endpoint: the request and response contract@@ -27961,6 +28197,7 @@ paths:summary: Prometheus instant querytags:- prometheus+ x-signoz-stability: alphapost:description: 'Prometheus-compatible endpoint: the request and response contractis the upstream Prometheus HTTP API (https://prometheus.io/docs/prometheus/latest/querying/api/).@@ -28046,6 +28283,7 @@ paths:summary: Prometheus instant querytags:- prometheus+ x-signoz-stability: alpha/prometheus/api/v1/query_range:get:description: 'Prometheus-compatible endpoint: the request and response contract@@ -28145,6 +28383,7 @@ paths:summary: Prometheus range querytags:- prometheus+ x-signoz-stability: alphapost:description: 'Prometheus-compatible endpoint: the request and response contractis the upstream Prometheus HTTP API (https://prometheus.io/docs/prometheus/latest/querying/api/).@@ -28243,6 +28482,7 @@ paths:summary: Prometheus range querytags:- prometheus+ x-signoz-stability: alphaservers:- description: The fully qualified URL to the SigNoz APIServer.url: https://{host}:{port}{base_path}diff --git a/docs/contributing/go/handler.md b/docs/contributing/go/handler.mdindex 72da350535..4db1dbc7d9 100644--- a/docs/contributing/go/handler.md+++ b/docs/contributing/go/handler.md@@ -179,6 +179,7 @@ The `handler.New` function ties the HTTP handler to OpenAPI metadata via `OpenAP- **SuccessStatusCode**: The HTTP status for successful responses (for example, `http.StatusOK`, `http.StatusCreated`, `http.StatusNoContent`).- **ErrorStatusCodes**: Additional error status codes beyond the standard ones automatically added by `handler.New`.- **SecuritySchemes**: Auth mechanisms and scopes required by the operation.+- **Stability**: Maturity marker (`handler.StabilityDevelopment`, `handler.StabilityAlpha`, `handler.StabilityBeta`, `handler.StabilityStable`, the OpenTelemetry Collector levels) emitted as the `x-signoz-stability` extension on every operation. Unset is emitted as `alpha`.The generic handler:diff --git a/pkg/apiserver/signozapiserver/alertmanager.go b/pkg/apiserver/signozapiserver/alertmanager.goindex 911f0fe060..e2770436da 100644--- a/pkg/apiserver/signozapiserver/alertmanager.go+++ b/pkg/apiserver/signozapiserver/alertmanager.go@@ -145,6 +145,7 @@ func (provider *provider) addAlertmanagerRoutes(router *mux.Router) error {SuccessStatusCode: http.StatusCreated,ErrorStatusCodes: []int{http.StatusBadRequest, http.StatusConflict},Deprecated: false,+ Stability: handler.StabilityDevelopment,SecuritySchemes: newScopedSecuritySchemes([]string{coretypes.ResourceMetaResourceNotificationChannel.Scope(coretypes.VerbCreate)}),},handler.WithResourceDefs(handler.BasicResourceDef{@@ -173,6 +174,7 @@ func (provider *provider) addAlertmanagerRoutes(router *mux.Router) error {SuccessStatusCode: http.StatusOK,ErrorStatusCodes: []int{http.StatusBadRequest},Deprecated: false,+ Stability: handler.StabilityDevelopment,SecuritySchemes: newScopedSecuritySchemes([]string{coretypes.ResourceMetaResourceNotificationChannel.Scope(coretypes.VerbList)}),},handler.WithResourceDefs(handler.BasicResourceDef{@@ -199,6 +201,7 @@ func (provider *provider) addAlertmanagerRoutes(router *mux.Router) error {SuccessStatusCode: http.StatusOK,ErrorStatusCodes: []int{http.StatusBadRequest, http.StatusNotFound},Deprecated: false,+ Stability: handler.StabilityDevelopment,SecuritySchemes: newScopedSecuritySchemes([]string{coretypes.ResourceMetaResourceNotificationChannel.Scope(coretypes.VerbRead)}),},handler.WithResourceDefs(handler.BasicResourceDef{@@ -226,6 +229,7 @@ func (provider *provider) addAlertmanagerRoutes(router *mux.Router) error {SuccessStatusCode: http.StatusOK,ErrorStatusCodes: []int{http.StatusBadRequest, http.StatusNotFound},Deprecated: false,+ Stability: handler.StabilityDevelopment,SecuritySchemes: newScopedSecuritySchemes([]string{coretypes.ResourceMetaResourceNotificationChannel.Scope(coretypes.VerbUpdate)}),},handler.WithResourceDefs(handler.BasicResourceDef{@@ -253,6 +257,7 @@ func (provider *provider) addAlertmanagerRoutes(router *mux.Router) error {SuccessStatusCode: http.StatusNoContent,ErrorStatusCodes: []int{http.StatusBadRequest, http.StatusNotFound},Deprecated: false,+ Stability: handler.StabilityDevelopment,SecuritySchemes: newScopedSecuritySchemes([]string{coretypes.ResourceMetaResourceNotificationChannel.Scope(coretypes.VerbDelete)}),},handler.WithResourceDefs(handler.BasicResourceDef{@@ -281,6 +286,7 @@ func (provider *provider) addAlertmanagerRoutes(router *mux.Router) error {SuccessStatusCode: http.StatusOK,ErrorStatusCodes: []int{http.StatusBadRequest, http.StatusNotFound},Deprecated: false,+ Stability: handler.StabilityDevelopment,SecuritySchemes: newScopedSecuritySchemes([]string{coretypes.ResourceMetaResourceNotificationChannel.Scope(coretypes.VerbUpdate)}),},handler.WithResourceDefs(handler.BasicResourceDef{@@ -308,6 +314,7 @@ func (provider *provider) addAlertmanagerRoutes(router *mux.Router) error {SuccessStatusCode: http.StatusNoContent,ErrorStatusCodes: []int{http.StatusBadRequest},Deprecated: false,+ Stability: handler.StabilityDevelopment,SecuritySchemes: newScopedSecuritySchemes([]string{coretypes.ResourceMetaResourceNotificationChannel.Scope(coretypes.VerbCreate)}),},handler.WithResourceDefs(handler.BasicResourceDef{diff --git a/pkg/http/handler/handler_test.go b/pkg/http/handler/handler_test.gonew file mode 100644index 0000000000..9cf2a2d337--- /dev/null+++ b/pkg/http/handler/handler_test.go@@ -0,0 +1,75 @@+package handler++import (+ "net/http"+ "testing"++ "github.com/gorilla/mux"+ "github.com/stretchr/testify/assert"+ "github.com/stretchr/testify/require"+ "github.com/swaggest/openapi-go"+ "github.com/swaggest/openapi-go/openapi3"+)++type bespokeOpenAPIHandler struct{}++func (bespokeOpenAPIHandler) ServeHTTP(http.ResponseWriter, *http.Request) {}++func (bespokeOpenAPIHandler) ServeOpenAPI(opCtx openapi.OperationContext) {+ opCtx.SetID("Bespoke")+ opCtx.AddRespStructure(nil, openapi.WithHTTPStatus(http.StatusOK))+}++func (bespokeOpenAPIHandler) ResourceDefs() []ResourceDef { return nil }++func TestAttachStabilities(t *testing.T) {+ router := mux.NewRouter()+ router.Handle("/development", New(func(http.ResponseWriter, *http.Request) {}, OpenAPIDef{ID: "Development", SuccessStatusCode: http.StatusOK, Stability: StabilityDevelopment})).Methods(http.MethodGet)+ router.Handle("/beta/{id}", New(func(http.ResponseWriter, *http.Request) {}, OpenAPIDef{ID: "Beta", SuccessStatusCode: http.StatusOK, Stability: StabilityBeta})).Methods(http.MethodPut)+ router.Handle("/unset", New(func(http.ResponseWriter, *http.Request) {}, OpenAPIDef{ID: "Unset", SuccessStatusCode: http.StatusOK})).Methods(http.MethodGet)+ router.Handle("/bespoke", bespokeOpenAPIHandler{}).Methods(http.MethodGet)++ reflector := openapi3.NewReflector()+ collector := NewOpenAPICollector(reflector)+ require.NoError(t, router.Walk(collector.Walker))+ collector.AttachStabilities(reflector.Spec)++ testCases := []struct {+ subtestName string+ path string+ method string+ expectedExtensionValue any+ }{+ {+ subtestName: "development handler",+ path: "/development",+ method: "get",+ expectedExtensionValue: "development",+ },+ {+ subtestName: "beta handler with path parameter",+ path: "/beta/{id}",+ method: "put",+ expectedExtensionValue: "beta",+ },+ {+ subtestName: "unset handler defaults to alpha",+ path: "/unset",+ method: "get",+ expectedExtensionValue: "alpha",+ },+ {+ subtestName: "handler built outside New defaults to alpha",+ path: "/bespoke",+ method: "get",+ expectedExtensionValue: "alpha",+ },+ }++ for _, testCase := range testCases {+ t.Run(testCase.subtestName, func(t *testing.T) {+ operation := reflector.Spec.Paths.MapOfPathItemValues[testCase.path].MapOfOperationValues[testCase.method]+ assert.Equal(t, testCase.expectedExtensionValue, operation.MapOfAnything["x-signoz-stability"])+ })+ }+}diff --git a/pkg/http/handler/openapi.go b/pkg/http/handler/openapi.goindex cbf777129a..1a48ee0782 100644--- a/pkg/http/handler/openapi.go+++ b/pkg/http/handler/openapi.go@@ -1,14 +1,37 @@package handlerimport (+ "net/http""reflect"+ "github.com/SigNoz/signoz/pkg/valuer""github.com/gorilla/mux""github.com/swaggest/jsonschema-go"openapigo "github.com/swaggest/openapi-go"+ "github.com/swaggest/openapi-go/openapi3""github.com/swaggest/rest/openapi")+const signozStabilityKey string = "x-signoz-stability"++var (+ StabilityDevelopment = Stability{valuer.NewString("development")}+ StabilityAlpha = Stability{valuer.NewString("alpha")}+ StabilityBeta = Stability{valuer.NewString("beta")}+ StabilityStable = Stability{valuer.NewString("stable")}+)++// Stability is emitted as the x-signoz-stability extension on every operation; unset means alpha.+type Stability struct{ valuer.String }++func (stability Stability) StringValue() string {+ if stability.IsZero() {+ return StabilityAlpha.String.StringValue()+ }++ return stability.String.StringValue()+}+// OpenAPIExample is a named example for an OpenAPI operation.type OpenAPIExample struct {Name string@@ -32,6 +55,7 @@ type OpenAPIDef struct {SuccessStatusCode intErrorStatusCodes []intDeprecated bool+ Stability StabilitySecuritySchemes []OpenAPISecurityScheme}@@ -42,14 +66,16 @@ type OpenAPISecurityScheme struct {// OpenAPICollector is a collector for OpenAPI operations.type OpenAPICollector struct {- collector *openapi.Collector+ collector *openapi.Collector+ stabilities map[operationKey]Stability}func NewOpenAPICollector(reflector openapigo.Reflector) *OpenAPICollector {c := openapi.NewCollector(reflector)return &OpenAPICollector{- collector: c,+ collector: c,+ stabilities: make(map[operationKey]Stability),}}@@ -77,6 +103,9 @@ func (c *OpenAPICollector) Walker(route *mux.Route, _ *mux.Router, _ []*mux.Routif err := c.collector.CollectOperation(method, path, c.collect(method, path, handler.ServeOpenAPI)); err != nil {return err}+ if err := c.recordStability(method, path, httpHandler); err != nil {+ return err+ }}return nil}@@ -84,6 +113,17 @@ func (c *OpenAPICollector) Walker(route *mux.Route, _ *mux.Router, _ []*mux.Routreturn nil}+// AttachStabilities stamps every operation in spec, so handlers built outside New+// carry the unset stability rather than none.+func (c *OpenAPICollector) AttachStabilities(spec *openapi3.Spec) {+ for path, pathItem := range spec.Paths.MapOfPathItemValues {+ for method, operation := range pathItem.MapOfOperationValues {+ operation.WithMapOfAnythingItem(signozStabilityKey, c.stabilities[operationKey{method: method, path: path}].StringValue())+ pathItem.MapOfOperationValues[method] = operation+ }+ }+}+func (c *OpenAPICollector) collect(method string, path string, serveOpenAPIFunc ServeOpenAPIFunc) func(oc openapigo.OperationContext) error {return func(oc openapigo.OperationContext) error {// Serve the OpenAPI documentation for the handler@@ -117,3 +157,23 @@ func (c *OpenAPICollector) collect(method string, path string, serveOpenAPIFuncreturn nil}}++func (c *OpenAPICollector) recordStability(method string, path string, httpHandler http.Handler) error {+ generic, ok := httpHandler.(*handler)+ if !ok {+ return nil+ }++ cleanMethod, cleanPath, _, err := openapigo.SanitizeMethodPath(method, path)+ if err != nil {+ return err+ }++ c.stabilities[operationKey{method: cleanMethod, path: cleanPath}] = generic.openAPIDef.Stability+ return nil+}++type operationKey struct {+ method string+ path string+}diff --git a/pkg/signoz/openapi.go b/pkg/signoz/openapi.goindex bc7ad4db7e..2a7be99710 100644--- a/pkg/signoz/openapi.go+++ b/pkg/signoz/openapi.go@@ -174,6 +174,7 @@ func (openapi *OpenAPI) CreateAndWrite(path string) error {}attachDiscriminators(openapi.reflector.Spec)+ openapi.collector.AttachStabilities(openapi.reflector.Spec)// The library's MarshalYAML does a JSON round-trip that converts all numbers// to float64, causing large integers (e.g. epoch millisecond timestamps) to