Skip to content

Commit

Permalink
Merge pull request #4106 from hove-io/newrelic_deployment_az_suffix
Browse files Browse the repository at this point in the history
Jormungandr: deployment az suffix
  • Loading branch information
azime authored Sep 13, 2023
2 parents e5e4631 + 525f6d5 commit 980392e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions source/jormungandr/jormungandr/default_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,3 +259,4 @@
BEST_BOARDING_POSITIONS_DIR = os.getenv('JORMUNGANDR_BEST_BOARDING_POSITIONS_DIR', None)
ORIGIN_DESTINATION_DIR = os.getenv('JORMUNGANDR_ORIGIN_DESTINATION_DIR', None)
STOP_POINTS_ATTRACTIVITIES_DIR = os.getenv('JORMUNGANDR_STOP_POINTS_ATTRACTIVITIES_DIR', None)
DEPLOYMENT_AZ = os.getenv('JORMUNGANDR_DEPLOYMENT_AZ', "unknown")
3 changes: 3 additions & 0 deletions source/jormungandr/jormungandr/new_relic.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import functools
from typing import Text, Callable
from contextlib import contextmanager
from jormungandr import app

try:
from newrelic import agent
Expand Down Expand Up @@ -133,6 +134,7 @@ def wrapper(obj, service, *args, **kwargs):
"call": call_name,
"group": group_name,
"status": "ok",
"az": app.config.get("DEPLOYMENT_AZ", "unknown"),
}

start_time = timeit.default_timer()
Expand Down Expand Up @@ -171,6 +173,7 @@ def record_streetnetwork_call(call_name, connector_name, mode, coverage_name):
"mode": mode,
"coverage": coverage_name,
"status": "ok",
"az": app.config.get("DEPLOYMENT_AZ", "unknown"),
}
start_time = timeit.default_timer()
try:
Expand Down

0 comments on commit 980392e

Please sign in to comment.