import{getApiFunctionsUsage as c}from"./collectors/get-api-functions-usage.js";import{getAsyncApiUsage as f}from"./collectors/get-async-api-usage.js";import{getConfigStatsUsage as l}from"./collectors/get-config-stats-usage.js";import{getFileExtensionsUsage as p}from"./collectors/get-file-extensions-usage.js";import{getFrontmatterUsage as d}from"./collectors/get-frontmatter-usage.js";import{getMarkdocUsage as U}from"./collectors/get-markdoc-usage.js";import{getNestedConfigsUsage as A}from"./collectors/get-nested-configs-usage.js";import{getProcessedConfigStatsUsage as u}from"./collectors/get-processed-config-stats-usage.js";import{getRefsUsage as v}from"./collectors/get-refs-usage.js";import{getThemeFolderUsage as N}from"./collectors/get-theme-folder-usage.js";import{otelTelemetry as I}from"../../telemetry/otel/telemetry.js";async function P(i,n){const a=[c,f,l,p,d,U,A,u,v,N],m=await Promise.allSettled(a.map(e=>e({store:i,context:n}))),t={},o={};for(const e of m)if(e.status==="fulfilled"){const{name:s,value:r,version:g}=e.value;r&&(t[s]=r,o[s]=g)}I.send("build",{...t,versions:JSON.stringify(o),organizationId:process.env.ORGANIZATION_ID,organizationSlug:process.env.ORGANIZATION_SLUG,projectId:process.env.PROJECT_ID,branchName:process.env.BRANCH_NAME})}export{P as collectAnalytics};
