Get a stack trace for a session

When to use:

By supplying a specific AGENT_ID and SESSION_ID, the query can return a stack trace for the session.

Query:
# Tokens: AGENT_ID, SESSION_ID
# Get a stack trace for a session in an ABL application
{"O":"PASOE:type=OEManager,name=AgentManager","M":["getSessionStacks","16952","7"]}
Note: In this example, the token AGENT_ID is replaced with 16952 and SESSION_ID is replaced with 7.
Result:
The output displays a list of the stack trace listing files that were in use by the session. Used in conjunction with the GetSessionMetrics to identify active sessions like SessionID=7, developers can target specific files for the ACTIVE session to investigate.
{
  "getSessionStacks": {
    "ABLStacks": [
      {
        "Status": "Executing",
        "Databases": "",
        "BrokerSessionId": "A8A564D83461D3718EFA71A19C055C0D793DA292F6DF.oepas",
        "Callstack": [
          {
            "Line": 50,
            "Routine": "GetLogistics.p",
            "Source": "GetLogistics.p"
          },
          {
            "Line": 3,
            "Routine": "BalanceReport.p",
            "Source": "BalanceReport.p"
          }
        ],
        "StartupParams": "-pf /usr/Progress/dlc/startup.pf,(end .pf),-logginglevel 2,-logfile /usr/Progress/wrk/oepas/logs/oepas.agent.log,-uburl AppServerDC://0.0.0.0:43420/,-logname oepas,-logentrytypes ASPlumbing,DB.Connects,-ubpropfile /usr/Progress/wrk/oepas/conf/openedge.properties,-ASID 1,-ipver IPv4,-sectok XXXXXXXXXXXXXXXXXXXXXX,-T /usr/Progress/wrk/oepas/temp",
        "Propath": "propath entries",
        "AgentSessionId": 7,
        "OO4GLObjs": [
          {
            "ObjectId": "001026",
            "Class": "OpenEdge/Testing/GetInfo.cls"
          },
          {
            "ObjectId": "STATIC",
            "Class": "OpenEdge/Testing/APIClass.cls"
          },
          {
            "ObjectId": "STATIC",
            "Class": "OpenEdge/Testing/GetInfo.cls"
          },
          {
            "ObjectId": "001000",
            "Class": "OpenEdge/Rest/Admin/AppServerStatus.r"
          }
        ],
        "PersProcs": ""
      }
    ]
  }
}