Thundra APM
Search…
Deployment Integrations
Powered By GitBook
Configuring Go SDK
After you integrate Thundra’s agent into your application, you can configure settings to decide which properties will be enabled on your agent. Environment variables that you can use to configure your agent are listed below.

Environment Variables

Name
Type
Default Value
thundra_apiKey
string
-
thundra_agent_lambda_disable
bool
false
thundra_agent_lambda_timeout_margin
number
200
thundra_agent_lambda_report_rest_baseUrl
string
thundra_agent_lambda_report_cloudwatch_enable
bool
false
thundra_agent_lambda_trace_disable
bool
false
thundra_agent_lambda_metric_disable
bool
true
thundra_agent_lambda_log_disable
bool
true
thundra_log_logLevel
string
TRACE
thundra_agent_lambda_trace_request_disable
bool
false
thundra_agent_lambda_trace_response_disable
bool
false
thundra_agent_lambda_report_rest_trustAllCertificates
bool
false
thundra_lambda_debug_enable
bool
false
thundra_agent_lambda_warmup_warmupAware
bool
false

Thundra Api Key Configuration

Thundra Api Key Configuration
1
thundra_apiKey
Copied!
Specifies the API key that monitoring data will be sent through. You won't be able to publish your data without setting an API key. You can generate an API key at Thundra, visit Projects page to learn more.

Lambda Agent Configuration

Lambda Agent Configuration
1
thundra_agent_lambda_disable
Copied!
Set this configuration to true if you want to disable Thundra.

Lambda Agent Trace Configuration

Lambda Agent Trace Configturation
1
thundra_agent_lambda_trace_disable
Copied!
Set this configuration to true if you want to disable the trace plugin.

Lambda Agent Log Configuration

The Thundra Go agent's log plugin is disabled by default.
Lambda Agent Log Configuration
1
thundra_agent_lambda_log_disable
Copied!
Set this configuration to false if you want to enable the log plugin.

Lambda Agent Log Level

Lamba Agent Log Level
1
thundra_log_logLevel
Copied!
Log level can be set with one of the following values:
TRACE,DEBUG,INFO,WARN,ERROR,NONE

Lambda Agent Metric Configuration

By default, the Thundra Go agent's metric plugin is disabled.
Lambda Agent Metric Configuration
1
thundra_agent_lambda_metric_disable
Copied!
Set this configuration to false if you want to enable the metric plugin.
Lambda Agent CloudWatch Configuration
Lambda Agent CloudWatch Configuration
1
thundra_agent_lambda_report_cloudwatch_enable
Copied!
Set this configuration to true if you want to enable asynchronous monitoring. Note that this is just one step you need to take for this process: Check out our How to Setup Async Monitoring page for more information.

Lambda Agent WarmUp Configuration

Lambda Agent WarmUp Configuration
1
thundra_agent_lambda_warmup_warmupAware
Copied!
Set this configuration to true if you want to enable warming up and reduce cold starts. Note that this is just one step you need to take for this process: Check out our How to Warmup page for more information.

Lambda Agent Trace Request Configuration

Lambda Agent Trace Request Configration
1
thundra_agent_lambda_trace_request_skip
Copied!
Set this configuration to true if you want to disable monitoring requests.

Lambda Agent Trace Response Configuration

Lambda Agent Trace Response Configuration
1
thundra_agent_lambda_trace_response_skip
Copied!
Set this configuration to true if you want to disable monitoring responses.

Thundra Agent Report EndPoint Configuration

Thundra Agent Report EndPoint Configuration
1
thundra_agent_lambda_report_rest_baseUrl
Copied!
Set this configuration if you want to change the URL to which the Thundra agent sends reports. If you are not forwarding Thundra data to our partner environments (Splunk, Honeycomb), then it is unnecessary to set this environment variable to a URL.
Note: path /monitoring-data is added to the URL automatically. For instance, in the default case (https://api.thundra.io/v1), the agent makes an HTTPS post request to the path https://api.thundra.io/v1/monitoring-data.

Thundra Agent Timeout Margin Configuration

Thundra Agent Timeout Margin Configuration
1
thundra_agent_lambda_timeout_margin
Copied!
This specifies how much time is needed to send a report before a Lambda times out. You should change this variable if the timeout_margin is not enough and you do not see your timeout functions on the Thundra console. The default value is 200 ms.

Thundra Agent Certificate Configuration

Thundra Agent Certificate Configuration
1
thundra_agent_lambda_report_rest_trustAllCertificates
Copied!
When dealing with HTTPS and HTTP with asynchronous functions, you can enable this configuration by setting it to true to interact with HTTPS or HTTP regardless.

Last modified 10mo ago