|
| 1 | + |
| 2 | +namespace AI |
| 3 | + |
| 4 | +[ContextContract("Emit")] |
| 5 | +[PseudoType("JSMap")] |
| 6 | +struct ContextTagKeys |
| 7 | +{ |
| 8 | + [Description("Application version. Information in the application context fields is always about the application that is sending the telemetry.")] |
| 9 | + [MaxStringLength("1024")] |
| 10 | + 10: string ApplicationVersion = "ai.application.ver"; |
| 11 | + |
| 12 | + [Description("Unique client device id. Computer name in most cases.")] |
| 13 | + [MaxStringLength("1024")] |
| 14 | + 100: string DeviceId = "ai.device.id"; |
| 15 | + |
| 16 | + [Description("Device locale using <language>-<REGION> pattern, following RFC 5646. Example 'en-US'.")] |
| 17 | + [MaxStringLength("64")] |
| 18 | + 115: string DeviceLocale = "ai.device.locale"; |
| 19 | + |
| 20 | + [Description("Model of the device end user of the application using. Used for client scenarios. If empty, derived from user agent.")] |
| 21 | + [MaxStringLength("256")] |
| 22 | + 120: string DeviceModel = "ai.device.model"; |
| 23 | + |
| 24 | + [MaxStringLength("256")] |
| 25 | + 130: string DeviceOEMName = "ai.device.oemName"; |
| 26 | + |
| 27 | + [Description("Operation system name and version of the device end user of the application using. If empty derived from user agent. Example 'Windows 10 Pro 10.0.10586.0'")] |
| 28 | + [MaxStringLength("256")] |
| 29 | + 140: string DeviceOSVersion = "ai.device.osVersion"; |
| 30 | + |
| 31 | + [Description("Type of the device end user of the application is using. Used primarily to distinguish JavaScript telemetry from server side telemetry. Examples: 'PC', 'Phone', 'Browser'. 'PC' is a default value.")] |
| 32 | + [MaxStringLength("64")] |
| 33 | + 160: string DeviceType = "ai.device.type"; |
| 34 | + |
| 35 | + [Description("The IPv4 IP address of the client device. IPv6 is not currently supported. Information in the location context fields is always about the end user. When telemetry is sent from a service, the location context is about the user that initiated the operation in the service.")] |
| 36 | + [MaxStringLength("45")] |
| 37 | + 200: string LocationIp = "ai.location.ip"; |
| 38 | + |
| 39 | + [Description("A unique identifier for the operation instance. The operation.id is created by either a request or a page view. All other telemetry sets this to the value for the containing request or page view. Operation.id is used for finding all the telemetry items for a specific operation instance.")] |
| 40 | + [MaxStringLength("128")] |
| 41 | + 300: string OperationId = "ai.operation.id"; |
| 42 | + |
| 43 | + [Description("The name (group) of the operation. The operation.name is created by either a request or a page view. All other telemetry items set this to the value for the containing request or page view. Operation.name is used for finding all the telemetry items for a group of operations (i.e. 'GET Home/Index').")] |
| 44 | + [MaxStringLength("1024")] |
| 45 | + 305: string OperationName = "ai.operation.name"; |
| 46 | + |
| 47 | + [Description("The unique identifier of the telemetry item's immediate parent.")] |
| 48 | + [MaxStringLength("128")] |
| 49 | + 310: string OperationParentId = "ai.operation.parentId"; |
| 50 | + |
| 51 | + [Description("Name of synthetic source. Some telemetry from the application may represent a synthetic traffic. It may be web crawler indexing the web site, site availability tests or traces from diagnostic libraries like Application Insights SDK itself.")] |
| 52 | + [MaxStringLength("1024")] |
| 53 | + 320: string OperationSyntheticSource = "ai.operation.syntheticSource"; |
| 54 | + |
| 55 | + [Description("The cV is a light weight vector clock which can be used to identify and order related events across clients and services.")] |
| 56 | + [MaxStringLength("64")] |
| 57 | + 330: string OperationCorrelationVector = "ai.operation.correlationVector"; |
| 58 | + |
| 59 | + [Description("Session ID - the instance of the user's interaction with the app. Information in the session context fields is always about the end user. When telemetry is sent from a service, the session context is about the user that initiated the operation in the service.")] |
| 60 | + [MaxStringLength("64")] |
| 61 | + 400: string SessionId = "ai.session.id"; |
| 62 | + |
| 63 | + [Description("Boolean value indicating whether the session identified by ai.session.id is first for the user or not.")] |
| 64 | + [MaxStringLength("5")] |
| 65 | + [Question("Should it be marked as JSType-bool for breeze?")] |
| 66 | + 405: string SessionIsFirst = "ai.session.isFirst"; |
| 67 | + |
| 68 | + [Description("In multi-tenant applications account ID or name that user is acting with. Examples may be subscription ID for Azure portal or blog name blogging platform.")] |
| 69 | + [MaxStringLength("1024")] |
| 70 | + 505: string UserAccountId = "ai.user.accountId"; |
| 71 | + |
| 72 | + [Description("The browser's user agent string as reported by the browser. This property will be used to extract informaiton regarding customer browser, but will not be stored. Use custom properties to store the original user agent.")] |
| 73 | + [MaxStringLength("2048")] |
| 74 | + 510: string UserAgent = "ai.user.userAgent"; |
| 75 | + |
| 76 | + [Description("Anonymous user id. Represents the end user of the application. When telemetry is sent from a service, the user context is about the user than initiated the operation in the service.")] |
| 77 | + [MaxStringLength("128")] |
| 78 | + 515: string UserId = "ai.user.id"; |
| 79 | + |
| 80 | + [Description("Authenticated user id. As opposite to ai.user.id represents the user with by the friendly name. Since it's PII information it is not collected by default by most SDKs.")] |
| 81 | + [MaxStringLength("1024")] |
| 82 | + 525: string UserAuthUserId = "ai.user.authUserId"; |
| 83 | + |
| 84 | + [Description("Name of the role application is part of. Maps directly to the role name in azure.")] |
| 85 | + [MaxStringLength("256")] |
| 86 | + 705: string CloudRole = "ai.cloud.role"; |
| 87 | + |
| 88 | + [Description("Name of the instance where application is running. Computer name for on-premisis, instance name for Azure.")] |
| 89 | + [MaxStringLength("256")] |
| 90 | + 715: string CloudRoleInstance = "ai.cloud.roleInstance"; |
| 91 | + |
| 92 | + [Description("SDK version. See https://github.com/Microsoft/ApplicationInsights-Home/blob/master/SDK-AUTHORING.md#sdk-version-specification for information.")] |
| 93 | + [MaxStringLength("64")] |
| 94 | + 1000: string InternalSdkVersion = "ai.internal.sdkVersion"; |
| 95 | + |
| 96 | + [Description("Agent version. Used to indicate the version of StatusMonitor installed on the computer if it is used for data collection.")] |
| 97 | + [MaxStringLength("64")] |
| 98 | + 1001: string InternalAgentVersion = "ai.internal.agentVersion"; |
| 99 | + |
| 100 | +} |
0 commit comments