go.undefinedlabs.com/scopeagent@v0.4.2/env/vars.go (about) 1 package env 2 3 import "go.undefinedlabs.com/scopeagent/tags" 4 5 var ( 6 ScopeDsn = newStringEnvVar("", "SCOPE_DSN") 7 ScopeApiKey = newStringEnvVar("", "SCOPE_APIKEY") 8 ScopeApiEndpoint = newStringEnvVar("https://app.scope.dev", "SCOPE_API_ENDPOINT") 9 ScopeService = newStringEnvVar("default", "SCOPE_SERVICE") 10 ScopeRepository = newStringEnvVar("", "SCOPE_REPOSITORY") 11 ScopeCommitSha = newStringEnvVar("", "SCOPE_COMMIT_SHA") 12 ScopeBranch = newStringEnvVar("", "SCOPE_BRANCH") 13 ScopeSourceRoot = newStringEnvVar("", "SCOPE_SOURCE_ROOT") 14 ScopeLoggerRoot = newStringEnvVar("", "SCOPE_LOGGER_ROOT", "SCOPE_LOG_ROOT_PATH") 15 ScopeDebug = newBooleanEnvVar(false, "SCOPE_DEBUG") 16 ScopeTracerGlobal = newBooleanEnvVar(false, "SCOPE_TRACER_GLOBAL", "SCOPE_SET_GLOBAL_TRACER") 17 ScopeTestingMode = newBooleanEnvVar(false, "SCOPE_TESTING_MODE") 18 ScopeTestingFailRetries = newIntEnvVar(0, "SCOPE_TESTING_FAIL_RETRIES") 19 ScopeTestingPanicAsFail = newBooleanEnvVar(false, "SCOPE_TESTING_PANIC_AS_FAIL") 20 ScopeConfiguration = newSliceEnvVar([]string{tags.PlatformName, tags.PlatformArchitecture, tags.GoVersion}, "SCOPE_CONFIGURATION") 21 ScopeMetadata = newMapEnvVar(nil, "SCOPE_METADATA") 22 ScopeInstrumentationHttpPayloads = newBooleanEnvVar(false, "SCOPE_INSTRUMENTATION_HTTP_PAYLOADS") 23 ScopeInstrumentationHttpStacktrace = newBooleanEnvVar(false, "SCOPE_INSTRUMENTATION_HTTP_STACKTRACE") 24 ScopeInstrumentationDbStatementValues = newBooleanEnvVar(false, "SCOPE_INSTRUMENTATION_DB_STATEMENT_VALUES") 25 ScopeInstrumentationDbStacktrace = newBooleanEnvVar(false, "SCOPE_INSTRUMENTATION_DB_STACKTRACE") 26 ScopeRunnerEnabled = newBooleanEnvVar(false, "SCOPE_RUNNER_ENABLED") 27 ScopeRunnerIncludeBranches = newSliceEnvVar(nil, "SCOPE_RUNNER_INCLUDE_BRANCHES") 28 ScopeRunnerExcludeBranches = newSliceEnvVar(nil, "SCOPE_RUNNER_EXCLUDE_BRANCHES") 29 ScopeDependenciesIndirect = newBooleanEnvVar(false, "SCOPE_DEPENDENCIES_INDIRECT") 30 ScopeInstrumentationTestingLogger = newBooleanEnvVar(true, "`SCOPE_INSTRUMENTATION_TESTING_LOGGER`") 31 )