Files
anonymous_github/backend/internal/logging/policy.json
T

694 lines
22 KiB
JSON

{
"source": "PR #956 f084f5cbfc7b328a04b4e7e859ce9fa224c605c4",
"events": {
"PR comments 404, continuing without them": "pr_comments_404_continuing_without_them",
"S3 body stream error": "s3_body_stream_error",
"account removed": "account_removed",
"billing maintenance failed": "billing_maintenance_failed",
"billing reconciliation deferred": "billing_reconciliation_deferred",
"billing requires attention": "billing_requires_attention",
"billing worker failed": "billing_worker_failed",
"blob API failed, falling back to raw URL": "blob_api_failed_falling_back_to_raw_url",
"branch not found": "branch_not_found",
"cache removal failed": "cache_removal_failed",
"cache removed": "cache_removed",
"checking repository status and unused repositories": "checking_repository_status_and_unused_repositories",
"cleared lock for active job": "cleared_lock_for_active_job",
"conference expire failed": "conference_expire_failed",
"content expiration failed": "content_expiration_failed",
"daily stats snapshot failed": "daily_stats_snapshot_failed",
"daily stats snapshot stored": "daily_stats_snapshot_stored",
"download completed": "download_completed",
"download start": "download_start",
"downloadFile failed": "downloadfile_failed",
"downloaded": "downloaded",
"downloading file": "downloading_file",
"downloading gist": "downloading_gist",
"downloading pull request": "downloading_pull_request",
"downloading via raw URL (LFS)": "downloading_via_raw_url_lfs",
"duplicate Stripe customer requires review": "duplicate_stripe_customer_requires_review",
"ensureTodaySnapshot failed": "ensuretodaysnapshot_failed",
"error log redis connect failed": "error_log_redis_connect_failed",
"expired repository cleanup failed": "expired_repository_cleanup_failed",
"failed removal recovery failed": "failed_removal_recovery_failed",
"failed to persist ERROR status": "failed_to_persist_error_status",
"failed to record repository removal error": "failed_to_record_repository_removal_error",
"getToken": "gettoken",
"github primary rate limit hit": "github_primary_rate_limit_hit",
"github secondary rate limit hit": "github_secondary_rate_limit_hit",
"grant revocation failed": "grant_revocation_failed",
"initial repository status check failed": "initial_repository_status_check_failed",
"job completed": "job_completed",
"job stalled": "job_stalled",
"job started": "job_started",
"lastUsedAt update failed": "lastusedat_update_failed",
"login-token failed": "login_token_failed",
"login-token req.login failed": "login_token_req_login_failed",
"logout after account removal failed": "logout_after_account_removal_failed",
"logout failed": "logout_failed",
"lookup failed": "lookup_failed",
"markErrorIfInFlight failed": "markerrorifinflight_failed",
"markErrorIfRemoving failed": "markerrorifremoving_failed",
"metadata cleanup complete": "metadata_cleanup_complete",
"metadata cleanup deferred": "metadata_cleanup_deferred",
"owner access alert reset unavailable": "owner_access_alert_reset_unavailable",
"owner access email accepted": "owner_access_email_accepted",
"owner access email audit unavailable": "owner_access_email_audit_unavailable",
"owner access email claim cleanup unavailable": "owner_access_email_claim_cleanup_unavailable",
"owner access email deferred recovery unavailable": "owner_access_email_deferred_recovery_unavailable",
"owner access email delivery failed": "owner_access_email_delivery_failed",
"owner access email preparation cleanup unavailable": "owner_access_email_preparation_cleanup_unavailable",
"owner access email recovery recorded": "owner_access_email_recovery_recorded",
"owner access email recovery unavailable": "owner_access_email_recovery_unavailable",
"owner access email result reconciliation required": "owner_access_email_result_reconciliation_required",
"owner access email unavailable": "owner_access_email_unavailable",
"process fatal error": "process_fatal_error",
"process heartbeat": "process_heartbeat",
"process started": "process_started",
"progress": "progress",
"queue heartbeat": "queue_heartbeat",
"queued for download": "queued_for_download",
"rate limit gate active, delaying job before work": "rate_limit_gate_active_delaying_job_before_work",
"rate limit gate set": "rate_limit_gate_set",
"rate-limited, delaying job": "rate_limited_delaying_job",
"recover failed": "recover_failed",
"recoverStuckPreparing failed": "recoverstuckpreparing_failed",
"recoverStuckRemoving failed": "recoverstuckremoving_failed",
"recovered expired repository cleanup": "recovered_expired_repository_cleanup",
"recovered file from truncated tree": "recovered_file_from_truncated_tree",
"recovered file invalidation failed": "recovered_file_invalidation_failed",
"recovered stuck repo": "recovered_stuck_repo",
"redis client error": "redis_client_error",
"redis rate limit gate written": "redis_rate_limit_gate_written",
"rejected upstream download destination": "rejected_upstream_download_destination",
"removal failed": "removal_failed",
"removal recovery failed": "removal_recovery_failed",
"removeCache save failed": "removecache_save_failed",
"removed cache for unused repository": "removed_cache_for_unused_repository",
"removing cache": "removing_cache",
"removing repository": "removing_repository",
"repo claimed": "repo_claimed",
"repository cache removal failed": "repository_cache_removal_failed",
"repository expiration failed": "repository_expiration_failed",
"repository expired": "repository_expired",
"repository removal failed": "repository_removal_failed",
"repository removed": "repository_removed",
"requeued failed removal": "requeued_failed_removal",
"requeued interrupted removal": "requeued_interrupted_removal",
"reset": "reset",
"retired tree cleanup deferred": "retired_tree_cleanup_deferred",
"retired tree cleanup failed": "retired_tree_cleanup_failed",
"running daily stats snapshot": "running_daily_stats_snapshot",
"send failed": "send_failed",
"server started": "server_started",
"source stream failed; cache write discarded": "source_stream_failed_cache_write_discarded",
"staged tree cleanup failed": "staged_tree_cleanup_failed",
"staged tree completion deferred": "staged_tree_completion_deferred",
"streamer fetch failed": "streamer_fetch_failed",
"streamer started": "streamer_started",
"streamer startup failed": "streamer_startup_failed",
"streamer zip fetch failed": "streamer_zip_fetch_failed",
"temporary storage cleanup deferred": "temporary_storage_cleanup_deferred",
"token refresh failed; backing off": "token_refresh_failed_backing_off",
"up to date": "up_to_date",
"update queued": "update_queued",
"verify failed": "verify_failed",
"waiting for rate limit gate": "waiting_for_rate_limit_gate",
"webhook processing failed": "webhook_processing_failed",
"write failed": "write_failed",
"zip stream failed": "zip_stream_failed",
"request": "request_completed",
"slow request": "request_slow",
"request interrupted": "request_cancelled",
"job failed": "job_failed",
"configuration rejected": "process_fatal_error",
"startup failed": "process_fatal_error",
"server stopped": "process_fatal_error",
"request panicked": "application_log",
"ZIP transfer stopped": "zip_stream_failed"
},
"allowed": {
"s": [
"E",
"F"
],
"limit_req_status": [
"PASSED",
"DELAYED",
"REJECTED",
"DELAYED_DRY_RUN",
"REJECTED_DRY_RUN"
],
"severity": [
"debug",
"info",
"warn",
"error"
],
"event": [
"account_removed",
"application_log",
"billing_maintenance_failed",
"billing_reconciliation_deferred",
"billing_requires_attention",
"billing_worker_failed",
"blob_api_failed_falling_back_to_raw_url",
"branch_not_found",
"cache_removal_failed",
"cache_removed",
"checking_repository_status_and_unused_repositories",
"cleared_lock_for_active_job",
"conference_expire_failed",
"content_expiration_failed",
"daily_stats_snapshot_failed",
"daily_stats_snapshot_stored",
"download_completed",
"download_start",
"downloaded",
"downloadfile_failed",
"downloading_file",
"downloading_gist",
"downloading_pull_request",
"downloading_via_raw_url_lfs",
"duplicate_stripe_customer_requires_review",
"ensuretodaysnapshot_failed",
"error_log_redis_connect_failed",
"expired_repository_cleanup_failed",
"failed_removal_recovery_failed",
"failed_to_persist_error_status",
"failed_to_record_repository_removal_error",
"gettoken",
"github_primary_rate_limit_hit",
"github_secondary_rate_limit_hit",
"grant_revocation_failed",
"initial_repository_status_check_failed",
"job_completed",
"job_failed",
"job_stalled",
"job_started",
"lastusedat_update_failed",
"login_token_failed",
"login_token_req_login_failed",
"logout_after_account_removal_failed",
"logout_failed",
"lookup_failed",
"markerrorifinflight_failed",
"markerrorifremoving_failed",
"metadata_cleanup_complete",
"metadata_cleanup_deferred",
"owner_access_alert_reset_unavailable",
"owner_access_email_accepted",
"owner_access_email_audit_unavailable",
"owner_access_email_claim_cleanup_unavailable",
"owner_access_email_deferred_recovery_unavailable",
"owner_access_email_delivery_failed",
"owner_access_email_preparation_cleanup_unavailable",
"owner_access_email_recovery_recorded",
"owner_access_email_recovery_unavailable",
"owner_access_email_result_reconciliation_required",
"owner_access_email_unavailable",
"pr_comments_404_continuing_without_them",
"process_fatal_error",
"process_heartbeat",
"process_started",
"progress",
"queue_heartbeat",
"queued_for_download",
"rate_limit_gate_active_delaying_job_before_work",
"rate_limit_gate_set",
"rate_limited_delaying_job",
"recover_failed",
"recovered_expired_repository_cleanup",
"recovered_file_from_truncated_tree",
"recovered_file_invalidation_failed",
"recovered_stuck_repo",
"recoverstuckpreparing_failed",
"recoverstuckremoving_failed",
"redis_client_error",
"redis_rate_limit_gate_written",
"rejected_upstream_download_destination",
"removal_failed",
"removal_recovery_failed",
"removecache_save_failed",
"removed_cache_for_unused_repository",
"removing_cache",
"removing_repository",
"repo_claimed",
"repository_cache_removal_failed",
"repository_expiration_failed",
"repository_expired",
"repository_removal_failed",
"repository_removed",
"request_cancelled",
"request_completed",
"request_slow",
"requeued_failed_removal",
"requeued_interrupted_removal",
"reset",
"retired_tree_cleanup_deferred",
"retired_tree_cleanup_failed",
"running_daily_stats_snapshot",
"s3_body_stream_error",
"send_failed",
"server_started",
"source_stream_failed_cache_write_discarded",
"staged_tree_cleanup_failed",
"staged_tree_completion_deferred",
"streamer_fetch_failed",
"streamer_started",
"streamer_startup_failed",
"streamer_zip_fetch_failed",
"temporary_storage_cleanup_deferred",
"token_refresh_failed_backing_off",
"up_to_date",
"update_queued",
"verify_failed",
"waiting_for_rate_limit_gate",
"webhook_log",
"webhook_processing_failed",
"write_failed",
"zip_stream_failed"
],
"errorCode": [
"ABORT_ERR",
"ECONNREFUSED",
"ECONNRESET",
"ENOTFOUND",
"EPIPE",
"ETIMEDOUT",
"billing_address_missing",
"billing_city_missing",
"billing_country_missing",
"billing_email_missing",
"billing_missing",
"billing_name_missing",
"billing_zip_missing",
"branch_not_found",
"branch_not_specified",
"cache_busy",
"cache_miss",
"cannot_coauthor_self",
"commit_not_specified",
"conf_end_date_invalid",
"conf_end_date_missing",
"conf_id_missing",
"conf_id_used",
"conf_name_missing",
"conf_not_activated",
"conf_not_found",
"conf_start_date_invalid",
"conf_start_date_missing",
"conference_not_found",
"connection_changed",
"download_not_enabled",
"expiration_limit_reached",
"file_listing_too_large",
"file_not_accessible",
"file_not_found",
"file_not_supported",
"file_too_big",
"folder_not_supported",
"gistId_already_used",
"gistId_not_specified",
"gist_expired",
"gist_not_found",
"gist_not_ready",
"github_app_access_required",
"github_app_reconnect_required",
"github_identity_mismatch",
"github_rate_limit_exceeded",
"github_token_invalid",
"github_user_not_found",
"invalid_commit_format",
"invalid_cursor",
"invalid_file_path",
"invalid_gistId",
"invalid_path",
"invalid_plan",
"invalid_preserve_files_format",
"invalid_project_name",
"invalid_pullRequestId",
"invalid_repo",
"invalid_repoId",
"invalid_request",
"invalid_settings",
"invalid_signature",
"invalid_sort",
"invalid_status",
"invalid_terms_format",
"invalid_token_id",
"invalid_token_options",
"is_removed",
"not_authorized",
"not_connected",
"options_not_provided",
"page_not_activated",
"page_not_supported_on_different_branch",
"path_not_defined",
"path_not_specified",
"pullRequestId_already_used",
"pullRequestId_is_not_a_number",
"pullRequestId_not_specified",
"pull_request_expired",
"pull_request_not_found",
"pull_request_not_ready",
"token_refresh_failed",
"quota_exceeded",
"rate_limited",
"readme_not_available",
"repoId_already_used",
"repoId_not_defined",
"repoUrl_not_defined",
"repo_access_limited",
"repo_empty",
"repo_not_accessible",
"repo_not_found",
"repo_saml_enforcement",
"repository_archived",
"repository_changed",
"repository_expired",
"repository_job_cancelled",
"repository_not_found",
"repository_not_ready",
"repository_not_specified",
"repository_tree_incomplete",
"repository_tree_too_large",
"s3_config_not_provided",
"source_not_provided",
"storage_delete_failed",
"storage_write_size_mismatch",
"submodule_not_available",
"terms_not_specified",
"token_expired",
"token_limit_reached",
"unable_to_connect_user",
"unable_to_download",
"upstream_error",
"upstream_timeout",
"user_not_found",
"username_not_defined",
"webhook_processing_failed"
],
"module": [
"admin",
"anonymized-file",
"auth",
"billing",
"dailyStats",
"file-tree",
"fs",
"gh-stream",
"gist",
"github",
"github-app-webhook",
"owner-notifications",
"process",
"pull-request",
"queue",
"queue:cache",
"queue:download",
"queue:remove",
"repository",
"repository-public",
"requests",
"route",
"route:repo",
"s3",
"schedule",
"server",
"streamer",
"temporary-storage",
"token-auth",
"user",
"zip-stream"
],
"reason": [
"protocol",
"credentials",
"port",
"host",
"request_deadline",
"client_cancelled",
"truncated_source",
"io_timeout",
"invalid_archive_trailer",
"invalid_archive_path",
"invalid_archive_root",
"unsupported_archive_entry",
"invalid_or_duplicate_archive_path",
"duplicate_archive_metadata",
"archive_metadata_missing",
"archive_entry_size_mismatch",
"archive_stream_failed",
"ABORT_ERR",
"ECONNREFUSED",
"ECONNRESET",
"ENOTFOUND",
"EPIPE",
"ETIMEDOUT",
"billing_address_missing",
"billing_city_missing",
"billing_country_missing",
"billing_email_missing",
"billing_missing",
"billing_name_missing",
"billing_zip_missing",
"branch_not_found",
"branch_not_specified",
"cache_busy",
"cache_miss",
"cannot_coauthor_self",
"commit_not_specified",
"conf_end_date_invalid",
"conf_end_date_missing",
"conf_id_missing",
"conf_id_used",
"conf_name_missing",
"conf_not_activated",
"conf_not_found",
"conf_start_date_invalid",
"conf_start_date_missing",
"conference_not_found",
"connection_changed",
"download_not_enabled",
"expiration_limit_reached",
"file_listing_too_large",
"file_not_accessible",
"file_not_found",
"file_not_supported",
"file_too_big",
"folder_not_supported",
"gistId_already_used",
"gistId_not_specified",
"gist_expired",
"gist_not_found",
"gist_not_ready",
"github_app_access_required",
"github_app_reconnect_required",
"github_identity_mismatch",
"github_rate_limit_exceeded",
"github_token_invalid",
"github_user_not_found",
"invalid_commit_format",
"invalid_cursor",
"invalid_file_path",
"invalid_gistId",
"invalid_path",
"invalid_plan",
"invalid_preserve_files_format",
"invalid_project_name",
"invalid_pullRequestId",
"invalid_repo",
"invalid_repoId",
"invalid_request",
"invalid_settings",
"invalid_signature",
"invalid_sort",
"invalid_status",
"invalid_terms_format",
"invalid_token_id",
"invalid_token_options",
"is_removed",
"not_authorized",
"not_connected",
"options_not_provided",
"page_not_activated",
"page_not_supported_on_different_branch",
"path_not_defined",
"path_not_specified",
"pullRequestId_already_used",
"pullRequestId_is_not_a_number",
"pullRequestId_not_specified",
"pull_request_expired",
"pull_request_not_found",
"pull_request_not_ready",
"token_refresh_failed",
"quota_exceeded",
"rate_limited",
"readme_not_available",
"repoId_already_used",
"repoId_not_defined",
"repoUrl_not_defined",
"repo_access_limited",
"repo_empty",
"repo_not_accessible",
"repo_not_found",
"repo_saml_enforcement",
"repository_archived",
"repository_changed",
"repository_expired",
"repository_job_cancelled",
"repository_not_found",
"repository_not_ready",
"repository_not_specified",
"repository_tree_incomplete",
"repository_tree_too_large",
"s3_config_not_provided",
"source_not_provided",
"storage_delete_failed",
"storage_write_size_mismatch",
"submodule_not_available",
"terms_not_specified",
"token_expired",
"token_limit_reached",
"unable_to_connect_user",
"unable_to_download",
"upstream_error",
"upstream_timeout",
"user_not_found",
"username_not_defined",
"webhook_processing_failed"
],
"phase": [
"parse",
"find_grant_owners",
"reconcile_grant",
"persist_installation_block",
"reconcile_installation"
],
"webhookEvent": [
"github_app_authorization",
"installation",
"installation_repositories"
],
"upstreamHost": [
"github.com",
"api.github.com",
"codeload.github.com",
"raw.githubusercontent.com",
"media.githubusercontent.com",
"other"
],
"queue": [
"download",
"remove",
"cache"
],
"outcome": [
"completed",
"interrupted"
],
"method": [
"GET",
"HEAD",
"POST",
"PUT",
"PATCH",
"DELETE",
"OPTIONS",
"OTHER"
],
"route": [
"/",
"other",
"/dashboard",
"/anonymize",
"/healthcheck",
"/api/healthcheck",
"/api",
"/api/download",
"/api/stat",
"/api/stat/history",
"/api/options",
"/api/message",
"/api/user",
"/api/user/quota",
"/api/user/dashboard",
"/api/repo",
"/api/anonymize-preview",
"/api/admin/overview",
"/api/admin/performance",
"/api/admin/errors",
"/api/admin/errors/stats",
"/api/admin/queues",
"/api/admin/queues/metrics",
"/github/app/webhook",
"/api/repo/:repoId",
"/api/repo/:repoId/file/:path",
"/api/repo/:repoId/files",
"/api/repo/:repoId/files/counts",
"/api/repo/:repoId/files/search",
"/api/repo/:repoId/zip",
"/api/repo/:repoId/options",
"/api/repo/:repoId/refresh",
"/api/repo/:repoId/coauthors",
"/api/repo/:repoId/extend",
"/api/repo/:owner/:repo/readme",
"/api/repo/:owner/:repo/branches",
"/w/:repoId/:path",
"/r/:repoId/:path",
"/api/pr/:id/:path",
"/api/gist/:id/:path",
"/assets/:path",
"/github/:action",
"/api/admin/:action",
"/api/user/:action",
"/api/repo/:id/file/:path",
"/api/repo/:id/files/counts",
"/api/repo/:id/files/search",
"/api/repo/:id/files",
"/api/repo/:id/zip",
"/api/repo/:id",
"/viewer/:id/:path"
],
"stage": [
"prepare",
"authorization",
"output",
"finalize"
]
},
"numbers": [
"status",
"httpStatus",
"ms",
"firstByteMs",
"responseMs",
"bytes",
"bytesPerSecond",
"attempt",
"rss",
"memoryLimitBytes",
"memoryRatio",
"uptime",
"activeRequests",
"waiting",
"active",
"delayed",
"failed",
"oldestWaitingMs",
"droppedLogs",
"loopP95Ms",
"upstreamStatus",
"stage_repository_ms",
"stage_credential_resolution_ms",
"stage_upstream_ms",
"stage_cache_lookup_ms",
"stage_cache_fill_ms",
"stage_worker_wait_ms",
"stage_anonymize_ms",
"stage_streamer_headers_ms",
"listenPort"
]
}