You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The goal of this feature is to allow users to define more complex trace profiles in confguration and reference them via a string in the GET /trace API.
Design
We will add a new property to RootOptions called TraceProfiles. TraceProfiles will be an JSON object containing strings-to-objects. Each string property name will define a new alias that can be used on the GET /trace API. The object defined under the new alias name will be identical to the existing format for HTTP POST /trace API payload. This will simplify an existing requests as in the examples that follow.
Existing workflow:
Make a call to the /trace API as a POST with the payload containing the trace configuration:
Make a get request to the /trace API and include the new alias:
GET /trace?pid=1234&profile=NewAliasName
Settings
Alias Name (a string): This setting will be the profile name of the new alias. It must be limited to A-Z, a-z, 0-9 and _ in order to be usable as a query string parameter. The values ``
Contents (an object): This value will be identical to the values sent in the http body of POST /trace API calls today. The format is defined by the C# object EventPipeConfiguration.
The text was updated successfully, but these errors were encountered:
Pre-Defined Custom Trace Profiles
The goal of this feature is to allow users to define more complex trace profiles in confguration and reference them via a string in the
GET /trace
API.Design
We will add a new property to RootOptions called
TraceProfiles
.TraceProfiles
will be an JSON object containing strings-to-objects. Each string property name will define a new alias that can be used on theGET /trace
API. The object defined under the new alias name will be identical to the existing format for HTTP POST /trace API payload. This will simplify an existing requests as in the examples that follow.Existing workflow:
Make a call to the
/trace
API as a POST with the payload containing the trace configuration:New Call:
Import or include the below configuration at startup or after:
Make a get request to the /trace API and include the new alias:
Settings
A-Z, a-z, 0-9 and _
in order to be usable as a query string parameter. The values ``POST /trace
API calls today. The format is defined by the C# object EventPipeConfiguration.The text was updated successfully, but these errors were encountered: