-
Notifications
You must be signed in to change notification settings - Fork 1
/
attributes.go
25 lines (23 loc) · 1.12 KB
/
attributes.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package uctrace
// Attribute is an enum of UserClouds-specific properties that we want to
// attach to traces.
type Attribute string
const (
// AttributeCompanyID captures the UUID of the company owning a tenant
AttributeCompanyID Attribute = "uc.company_id"
// AttributeCompanyName captures the name of the company owning a tenant
AttributeCompanyName Attribute = "uc.company_name"
// AttributeTenantID captures the UUID of the tenant
AttributeTenantID Attribute = "uc.tenant_id"
// AttributeTenantName captures the name of the tenant
AttributeTenantName Attribute = "uc.tenant_name"
// AttributeTenantURL captures the URL of the tenant
AttributeTenantURL Attribute = "uc.tenant_url"
// AttributeHandlerName captures the name of the handler that is processing
// the request
AttributeHandlerName Attribute = "uc.handler_name"
// AttributeSdkVersion captures the version of the UC SDK that sent the request
AttributeSdkVersion Attribute = "uc.sdk_version"
// AttributeUserFriendlyError captures the user-friendly error message in the event of a Friendlyf error
AttributeUserFriendlyError Attribute = "uc.user_friendly_error"
)