Repository URL to install this package:
|
Version:
2.68.0.50 ▾
|
from ..agent import wrap_external_trace
def instrument_pywapi(module):
if hasattr(module, 'get_weather_from_weather_com'):
wrap_external_trace(module, 'get_weather_from_weather_com', 'pywapi',
module.WEATHER_COM_URL)
if hasattr(module, 'get_countries_from_google'):
wrap_external_trace(module, 'get_countries_from_google', 'pywapi',
module.GOOGLE_COUNTRIES_URL)
if hasattr(module, 'get_cities_from_google'):
wrap_external_trace(module, 'get_cities_from_google', 'pywapi',
module.GOOGLE_CITIES_URL)
if hasattr(module, 'get_weather_from_yahoo'):
wrap_external_trace(module, 'get_weather_from_yahoo', 'pywapi',
module.YAHOO_WEATHER_URL)
if hasattr(module, 'get_weather_from_noaa'):
wrap_external_trace(module, 'get_weather_from_noaa', 'pywapi',
module.NOAA_WEATHER_URL)