Skip to content

Commit

Permalink
Change cloud_provider default to True (#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
basepi authored Jun 30, 2020
1 parent aee748f commit 0ed8984
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/configuration.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ You must use the query bar to filter for a specific environment in versions prio
[options="header"]
|============
| Environment | Django/Flask | Default | Example
| `ELASTIC_APM_CLOUD_PROVIDER` | `CLOUD_PROVIDER` | `None` | `"aws"`
| `ELASTIC_APM_CLOUD_PROVIDER` | `CLOUD_PROVIDER` | `True` | `"aws"`
|============

This config value allows you to specify which cloud provider should be assumed
Expand Down
2 changes: 1 addition & 1 deletion elasticapm/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def get_cloud_info(self):
"""
provider = self.config.cloud_provider

if provider is False:
if not provider:
return {}
if provider == "aws":
data = cloud.aws_metadata()
Expand Down
2 changes: 1 addition & 1 deletion elasticapm/conf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ class Config(_ConfigBase):
django_transaction_name_from_route = _BoolConfigValue("DJANGO_TRANSACTION_NAME_FROM_ROUTE", default=False)
disable_log_record_factory = _BoolConfigValue("DISABLE_LOG_RECORD_FACTORY", default=False)
use_elastic_traceparent_header = _BoolConfigValue("USE_ELASTIC_TRACEPARENT_HEADER", default=True)
cloud_provider = _ConfigValue("CLOUD_PROVIDER", default=None)
cloud_provider = _ConfigValue("CLOUD_PROVIDER", default=True)

@property
def is_recording(self):
Expand Down

0 comments on commit 0ed8984

Please sign in to comment.