add the instrumentation key to Info (#353)

This commit is contained in:
bmc-msft
2020-12-01 11:13:06 -05:00
committed by GitHub
parent 3f3193beeb
commit 7f97c142ed
3 changed files with 8 additions and 0 deletions

View File

@ -82,6 +82,11 @@ def get_subscription() -> Any: # should be str
return parse_resource_id(os.environ["ONEFUZZ_DATA_STORAGE"])["subscription"]
@cached
def get_insights_instrumentation_key() -> Any: # should be str
return os.environ["ONEFUZZ_TELEMETRY"]
@cached
def get_insights_appid() -> str:
return os.environ["APPINSIGHTS_APPID"]