feat: add 49 new Salesforce debug log event types and fix event metadata#750
Open
lukecotter wants to merge 2 commits intocertinia:mainfrom
Open
feat: add 49 new Salesforce debug log event types and fix event metadata#750lukecotter wants to merge 2 commits intocertinia:mainfrom
lukecotter wants to merge 2 commits intocertinia:mainfrom
Conversation
Add support for 49 previously unrecognised debug log events sourced from the Salesforce Debug Level page, including cursor operations, formula evaluation, RLM configurator/pricing, org/session cache, policy rules, data access evaluation, and additional flow/workflow events. - Add LOG_LEVEL constant and LogLevel type to types.ts - Add DataAccess and Wave to DEBUG_CATEGORY - Populate debugLevel and debugCategory on all event classes per official Salesforce documentation - Fix category mismatches (e.g. VF_SERIALIZE_VIEWSTATE_BEGIN was ApexCode, should be Visualforce; USER_DEBUG was ApexProfiling, should be ApexCode) - Create DurationLogEvent classes for begin/end pairs: CursorCreateBegin, FormulaEvaluateBegin, RlmConfiguratorBegin, RlmPricingBegin - Remove duplicate entries from _logEventNames - Sort all event arrays alphabetically - Add EventMetadata test suite
…sses Verified all event metadata against official Salesforce documentation (S1: developer docs, S2: help.salesforce.com) and live org data (S3). Level corrections (53 events): - 25 WF\_\* events: Fine → Info - 8 FLOW detail events: Fine → Finer - 5 FLOW/EVENT_SERVICE info events: Fine → Info - 4 System events (MODE_ENTER/EXIT, TRACE_FLAGS): Debug → Info - 4 Duplicate Detection/Match Engine events: Debug → Info - 2 SLA events: Fine → Info - 2 PUSH_NOTIFICATION events: Fine → Debug - WF_FLOW_ACTION_DETAIL: Finer → Fine - LIMIT_USAGE_FOR_NS: Error → Finest - XDS_RESPONSE_ERROR: Info → Error Category corrections (3 events): - VF_APEX_CALL_START: ApexCode → Visualforce (empirically verified) - LIMIT_USAGE_FOR_NS: NBA → ApexProfiling - XDS_RESPONSE_ERROR: System → Callout - VF_SERIALIZE/DESERIALIZE_CONTINUATION_STATE: ApexCode → Visualforce
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for 50 previously unrecognised Salesforce debug log event types, sets
debugLevelanddebugCategoryon all 171 existing event classes (previously unset on most), and corrects values verified against official Salesforce documentation.All event metadata was verified against:
New Events (50)
Database (Cursor operations):
CURSOR_CREATE_BEGIN, CURSOR_CREATE_END, CURSOR_FETCH, CURSOR_FETCH_PAGE
Apex Code:
APP_ANALYTICS_ERROR, APP_ANALYTICS_FINE, APP_ANALYTICS_WARN, FORMULA_BUILD, FORMULA_EVALUATE_BEGIN, FORMULA_EVALUATE_END, ORG_CACHE_CONTAINS, ORG_CACHE_GET, ORG_CACHE_GET_CAPACITY, ORG_CACHE_GET_PARTITION, ORG_CACHE_PUT, ORG_CACHE_REMOVE, PUSH_NOTIFICATION_INVALID_CONFIGURATION, PUSH_NOTIFICATION_INVALID_PAYLOAD, QUERY_SQL_LOG, SESSION_CACHE_CONTAINS, SESSION_CACHE_GET, SESSION_CACHE_GET_CAPACITY, SESSION_CACHE_GET_PARTITION, SESSION_CACHE_PUT, SESSION_CACHE_REMOVE
Database:
FOR_UPDATE_LOCKS_RELEASE, SAVEPOINT_RELEASE, SAVEPOINT_RESET, USER_MODE_PERMSET_APPLIED
System:
RLM_CONFIGURATOR_BEGIN, RLM_CONFIGURATOR_DEPLOY, RLM_CONFIGURATOR_END, RLM_CONFIGURATOR_STATS, RLM_PRICING_BEGIN, RLM_PRICING_END, DUPLICATE_RULE_FILTER_INVOCATION
Workflow:
END_CALL, FLOW_SCREEN_DETAIL, PLAY_PROMPT, SCHEDULED_FLOW_DETAIL, SLA_CASE_MILESTONE, WF_CHATTER_POST, WF_FLOW_ACTION_BEGIN
Data Access:
DATA_ACCESS_EVALUATION, POLICY_RULE_DEFINITION_CONDITION_EVALUATION_RESPONSE, POLICY_RULE_EVALUATION_REQUEST, POLICY_RULE_EVALUATION_RESPONSE, POLICY_RULE_EVALUATION_SKIPPED, POLICY_RULE_EVALUATION_START
Callout:
EXTERNAL_SERVICE_CALLBACK
debugLevel and debugCategory Set on All 171 Existing Event Classes
Previously most event classes had no
debugLevelordebugCategoryset. All 171 classes now have both properties populated per official documentation. Key groupings:Notable Corrections
Other Changes
LOG_LEVELconstant andLogLeveltype totypes.tsDataAccessandWavetoDEBUG_CATEGORYDurationLogEventclasses for begin/end pairs:CursorCreateBegin,FormulaEvaluateBegin,RlmConfiguratorBegin,RlmPricingBegin_logEventNamesTest plan
EventMetadata.test.tsvalidates all events are recognised and debugLevel is setsalesforce-debug-log-events.jsonmatch exactly (299 events, 0 property mismatches)Resolves #618