Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProjectName = "projectName" AppName = "appName" )
tag values
View Source
const ( WindowsConfigPath = "C:\\Program Files (x86)\\Sfagent\\config.yaml" LinuxConfigPath = "/opt/sfagent/config.yaml" )
config.yaml paths
View Source
const ( GlobalLabels = "_tag_projectName=%s,_tag_appName=%s,_tag_profileId=%s" ElasticAPMServerURL = "ELASTIC_APM_SERVER_URL" ElasticAPMGlobalLabels = "ELASTIC_APM_GLOBAL_LABELS" ElasticAPMSpanFramesMinDuration = "ELASTIC_APM_SPAN_FRAMES_MIN_DURATION" ElasticAPMStackTraceLimit = "ELASTIC_APM_STACK_TRACE_LIMIT" ElasticAPMVerifyServerCert = "ELASTIC_APM_VERIFY_SERVER_CERT" SfProjectName = "SF_PROJECT_NAME" SfAppName = "SF_APP_NAME" SfProfileKey = "SF_PROFILE_KEY" )
apm environment variables
View Source
const ( FramesMinDuration = "1ms" StackTraceLimit = "2" VerifyServerCert = "false" )
apm environment variables default values
View Source
const (
EncryptedKey = "U25hcHB5RmxvdzEyMzQ1Ng=="
)
sf decryption key
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { SnappyFlowKey string `json:"key,omitempty" yaml:"key,omitempty"` Tags Tags `json:"tags,omitempty" yaml:"tags,omitempty"` }
Config stores the key and tags from config.yaml
func LoadConfigFromFile ¶
LoadConfigFromFile loads the config from config.yaml
type SnappyFlowKeyData ¶
type SnappyFlowKeyData struct { ProfileID string `json:"profile_id"` TraceServer string `json:"trace_server_url"` }
SnappyFlowKeyData struct holds content after decryption
Click to show internal directories.
Click to hide internal directories.