Skip to content

Commit 0ed8984

Browse files
authored
Change cloud_provider default to True (#875)
1 parent aee748f commit 0ed8984

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/configuration.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ You must use the query bar to filter for a specific environment in versions prio
206206
[options="header"]
207207
|============
208208
| Environment | Django/Flask | Default | Example
209-
| `ELASTIC_APM_CLOUD_PROVIDER` | `CLOUD_PROVIDER` | `None` | `"aws"`
209+
| `ELASTIC_APM_CLOUD_PROVIDER` | `CLOUD_PROVIDER` | `True` | `"aws"`
210210
|============
211211

212212
This config value allows you to specify which cloud provider should be assumed

elasticapm/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def get_cloud_info(self):
367367
"""
368368
provider = self.config.cloud_provider
369369

370-
if provider is False:
370+
if not provider:
371371
return {}
372372
if provider == "aws":
373373
data = cloud.aws_metadata()

elasticapm/conf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ class Config(_ConfigBase):
347347
django_transaction_name_from_route = _BoolConfigValue("DJANGO_TRANSACTION_NAME_FROM_ROUTE", default=False)
348348
disable_log_record_factory = _BoolConfigValue("DISABLE_LOG_RECORD_FACTORY", default=False)
349349
use_elastic_traceparent_header = _BoolConfigValue("USE_ELASTIC_TRACEPARENT_HEADER", default=True)
350-
cloud_provider = _ConfigValue("CLOUD_PROVIDER", default=None)
350+
cloud_provider = _ConfigValue("CLOUD_PROVIDER", default=True)
351351

352352
@property
353353
def is_recording(self):

0 commit comments

Comments
 (0)