in src/requestTracing/utils.ts [183:201]
function getHostType(): string | undefined {
let hostType: string | undefined;
if (getEnvironmentVariable(AZURE_FUNCTION_ENV_VAR)) {
hostType = HostType.AZURE_FUNCTION;
} else if (getEnvironmentVariable(AZURE_WEB_APP_ENV_VAR)) {
hostType = HostType.AZURE_WEB_APP;
} else if (getEnvironmentVariable(CONTAINER_APP_ENV_VAR)) {
hostType = HostType.CONTAINER_APP;
} else if (getEnvironmentVariable(KUBERNETES_ENV_VAR)) {
hostType = HostType.KUBERNETES;
} else if (getEnvironmentVariable(SERVICE_FABRIC_ENV_VAR)) {
hostType = HostType.SERVICE_FABRIC;
} else if (isBrowser()) {
hostType = HostType.BROWSER;
} else if (isWebWorker()) {
hostType = HostType.WEB_WORKER;
}
return hostType;
}