Skip to content

Commit b8017bd

Browse files
author
Quentin Pierre
committed
Lambda wrapper - add api host to init
1 parent 427a2e6 commit b8017bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

datadog/threadstats/aws_lambda.py

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def _enter(cls):
3333
if not cls._was_initialized:
3434
cls._was_initialized = True
3535
api._api_key = os.environ.get('DATADOG_API_KEY')
36+
api._api_host = os.environ.get('DATADOG_HOST', 'https://api.datadoghq.com')
3637
cls._counter = cls._counter + 1
3738

3839
@classmethod

0 commit comments

Comments
 (0)