File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818
1919US_LOGGING_INGEST_HOST = "https://log-api.newrelic.com/log/v1"
2020EU_LOGGING_INGEST_HOST = 'https://log-api.eu.newrelic.com/log/v1'
21+ JP_LOGGING_INGEST_HOST = 'https://log-api.jp.newrelic.com/log/v1'
2122LOGGING_LAMBDA_VERSION = '1.3.0'
2223LOGGING_PLUGIN_METADATA = {
2324 'type' : "s3-lambda" ,
@@ -166,11 +167,12 @@ def _get_logging_endpoint(ingest_url=None):
166167 return ingest_url
167168 if "NR_LOGGING_ENDPOINT" in os .environ :
168169 return os .environ ["NR_LOGGING_ENDPOINT" ]
169- return (
170- EU_LOGGING_INGEST_HOST
171- if _get_license_key ().startswith ("eu" )
172- else US_LOGGING_INGEST_HOST
173- )
170+ license_key = _get_license_key ()
171+ if license_key .startswith ("eu" ):
172+ return EU_LOGGING_INGEST_HOST
173+ elif license_key .startswith ("jp" ):
174+ return JP_LOGGING_INGEST_HOST
175+ return US_LOGGING_INGEST_HOST
174176
175177
176178def _compress_payload (data ):
You can’t perform that action at this time.
0 commit comments