[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72T0C64RTR08AZ15JVYF30V":3,"skill-same:01M72T0C64RTR08AZ15JVYF30V":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M72T0C64RTR08AZ15JVYF30V","connector-observability",null,"Plan and implement logging, metrics, and evaluation visibility for Glean Indexing SDK connectors. Use when wiring connector runtime observability or deciding what to verify after a connector run.","gleanwork\u002Fglean-indexing-sdk","gleanwork","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F100331376?v=4","01M72SZSP4ZSMMBB7EMJGZQ2FJ","Glean Technologies Inc","01M72SZSPTYKMJHZFSB7ZEXY0H",10,"MIT","https:\u002F\u002Fgithub.com\u002Fgleanwork\u002Fglean-indexing-sdk\u002Fblob\u002Fmain\u002Fskills\u002Fconnector-observability\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: connector-observability\ndescription: Plan and implement logging, metrics, and evaluation visibility for Glean Indexing SDK connectors. Use when wiring connector runtime observability or deciding what to verify after a connector run.\n---\n\n# Connector Observability\n\nUse this skill when adding runtime visibility to an AI-built connector or when planning the eval\u002Freporting portion of a connector build.\n\n## Inputs\n\n- `\u003Cconnector-folder>\u002F.glean\u002Fconnector_plan.md`\n- `\u003Cconnector-folder>\u002F.glean\u002Fsource_investigation.md`\n- `\u003Cconnector-folder>\u002F.glean\u002Fapi_endpoints.json`\n- The generated connector\u002Fdata-client files\n\n## Rules\n\n- Use SDK observability APIs only. Do not invent logging\u002Fmetrics helpers.\n- Keep logs structured and secret-free.\n- Never log raw source API tokens, Glean indexing tokens, cookies, or request bodies that may contain customer content.\n- Prefer connector-level lifecycle, fetch, transform, upload, status, and failure visibility over noisy per-record logs.\n- Record the observability plan in `\u003Cconnector-folder>\u002F.glean\u002Fconnector_plan.md` before implementation.\n\n## SDK Observability Surface\n\nUse these exports from `glean.indexing.observability`:\n\n- `ConnectorObservability`: central runtime object for common fields, lifecycle logs, phase logs, upload logs, and metrics.\n- `setup_connector_logging`: configures structured logging for a connector logger.\n- `StructuredFormatter` and `CompactStructuredFormatter`: structured console\u002Flog formatting.\n- `ConsoleLoggerProvider`: default local logging provider.\n- `MetricsProvider` and `MetricType`: custom metrics backend interface.\n- `NoOpMetricsProvider`: default no-op metrics provider.\n- `InMemoryMetricsProvider`: test\u002Fdevelopment metrics provider.\n- `with_observability`: decorator for method-level observability when appropriate.\n- `track_crawl_progress`: decorator\u002Fhelper for crawl progress logging when appropriate.\n- `PerformanceTracker`: timing helper for local performance tracking.\n\nIf the connector uses `PushUploader`, pass a `ConnectorObservability` instance through its `observability` parameter so upload\u002Fbatch events are logged and metrics are emitted by the SDK wrapper.\n\n## What To Instrument\n\nPlan and implement visibility for:\n\n- Crawl lifecycle: started, completed, failed.\n- Source fetch: started, completed, item count, duration, source endpoint or entity type.\n- Transform: input count, output count, duration, filtered\u002Fskipped count when known.\n- Upload: batch start, batch completion, batch failure, batch size, upload ID.\n- API behavior: request count, latency, retry count, error count when available through SDK methods.\n- Evaluation: status checks run after upload and their results.\n\n## Glean Status And Debug Checks\n\nUse `connector-push` for the allowed status\u002Fdebug surface. The observability plan should say which of these will run after a test upload:\n\n- `StatusClient.get_datasource_status`\n- `StatusClient.get_documents_status`\n- `StatusClient.check_document_access`\n- `PushUploader.get_document_lifecycle_events`\n- `PushUploader.debug_user`\n\nDo not call undocumented status or debug endpoints directly.\n\n## Required Plan Fields\n\nBefore implementation, ensure `\u003Cconnector-folder>\u002F.glean\u002Fconnector_plan.md` includes:\n\n- Observability provider choice: console\u002Fno-op\u002Fin-memory\u002Fcustom.\n- Lifecycle events to log.\n- Source fetch and transform counts to report.\n- Upload metrics and batch events to report.\n- Status\u002Fdebug checks to run during evaluation.\n- Secret-redaction expectations.\n\n## Local Evaluation Guidance\n\nFor a credential-free planning eval, the plan should describe the observability that will be wired later. Do not require live metrics backends.\n\nFor an implementation eval with credentials, verify:\n\n- Generated Python compiles.\n- Connector run emits lifecycle\u002Ffetch\u002Ftransform\u002Fupload logs.\n- Upload status\u002Fdebug checks are attempted only when Glean indexing credentials are available.\n- No secret values appear in logs or `.glean\u002F` artifacts.\n","# Connector Observability\n\nUse this skill when adding runtime visibility to an AI-built connector or when planning the eval\u002Freporting portion of a connector build.\n\n## Inputs\n\n- `\u003Cconnector-folder>\u002F.glean\u002Fconnector_plan.md`\n- `\u003Cconnector-folder>\u002F.glean\u002Fsource_investigation.md`\n- `\u003Cconnector-folder>\u002F.glean\u002Fapi_endpoints.json`\n- The generated connector\u002Fdata-client files\n\n## Rules\n\n- Use SDK observability APIs only. Do not invent logging\u002Fmetrics helpers.\n- Keep logs structured and secret-free.\n- Never log raw source API tokens, Glean indexing tokens, cookies, or request bodies that may contain customer content.\n- Prefer connector-level lifecycle, fetch, transform, upload, status, and failure visibility over noisy per-record logs.\n- Record the observability plan in `\u003Cconnector-folder>\u002F.glean\u002Fconnector_plan.md` before implementation.\n\n## SDK Observability Surface\n\nUse these exports from `glean.indexing.observability`:\n\n- `ConnectorObservability`: central runtime object for common fields, lifecycle logs, phase logs, upload logs, and metrics.\n- `setup_connector_logging`: configures structured logging for a connector logger.\n- `StructuredFormatter` and `CompactStructuredFormatter`: structured console\u002Flog formatting.\n- `ConsoleLoggerProvider`: default local logging provider.\n- `MetricsProvider` and `MetricType`: custom metrics backend interface.\n- `NoOpMetricsProvider`: default no-op metrics provider.\n- `InMemoryMetricsProvider`: test\u002Fdevelopment metrics provider.\n- `with_observability`: decorator for method-level observability when appropriate.\n- `track_crawl_progress`: decorator\u002Fhelper for crawl progress logging when appropriate.\n- `PerformanceTracker`: timing helper for local performance tracking.\n\nIf the connector uses `PushUploader`, pass a `ConnectorObservability` instance through its `observability` parameter so upload\u002Fbatch events are logged and metrics are emitted by the SDK wrapper.\n\n## What To Instrument\n\nPlan and implement visibility for:\n\n- Crawl lifecycle: started, completed, failed.\n- Source fetch: started, completed, item count, duration, source endpoint or entity type.\n- Transform: input count, output count, duration, filtered\u002Fskipped count when known.\n- Upload: batch start, batch completion, batch failure, batch size, upload ID.\n- API behavior: request count, latency, retry count, error count when available through SDK methods.\n- Evaluation: status checks run after upload and their results.\n\n## Glean Status And Debug Checks\n\nUse `connector-push` for the allowed status\u002Fdebug surface. The observability plan should say which of these will run after a test upload:\n\n- `StatusClient.get_datasource_status`\n- `StatusClient.get_documents_status`\n- `StatusClient.check_document_access`\n- `PushUploader.get_document_lifecycle_events`\n- `PushUploader.debug_user`\n\nDo not call undocumented status or debug endpoints directly.\n\n## Required Plan Fields\n\nBefore implementation, ensure `\u003Cconnector-folder>\u002F.glean\u002Fconnector_plan.md` includes:\n\n- Observability provider choice: console\u002Fno-op\u002Fin-memory\u002Fcustom.\n- Lifecycle events to log.\n- Source fetch and transform counts to report.\n- Upload metrics and batch events to report.\n- Status\u002Fdebug checks to run during evaluation.\n- Secret-redaction expectations.\n\n## Local Evaluation Guidance\n\nFor a credential-free planning eval, the plan should describe the observability that will be wired later. Do not require live metrics backends.\n\nFor an implementation eval with credentials, verify:\n\n- Generated Python compiles.\n- Connector run emits lifecycle\u002Ffetch\u002Ftransform\u002Fupload logs.\n- Upload status\u002Fdebug checks are attempted only when Glean indexing credentials are available.\n- No secret values appear in logs or `.glean\u002F` artifacts.\n",{"name":5,"description":7},"main","ee846524264723549ef24dd32ef4324844268f9e","skills\u002Fconnector-observability",2,"https:\u002F\u002Fgithub.com\u002Fgleanwork\u002Fglean-indexing-sdk","https:\u002F\u002Fgithub.com\u002Fgleanwork","https:\u002F\u002Fwww.glean.com\u002F","The AI-powered work assistant. Across all your company’s data.","2026-10-31 16:38:59",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add gleanwork\u002Fglean-indexing-sdk --skill connector-observability",{"tool":39,"command":40},"bunx","bunx skills add gleanwork\u002Fglean-indexing-sdk --skill connector-observability",{"tool":42,"command":43},"pnpm","pnpm dlx skills add gleanwork\u002Fglean-indexing-sdk --skill connector-observability","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgleanwork\u002Fglean-indexing-sdk\u002Fblob\u002Fmain\u002Fskills\u002Fconnector-observability\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M72T10FWW0B4Q0V55AXA9S8S","connector-testing","Test a generated connector through full-mock, integration\u002Fcache, and live end-to-end phases using the public utilities under glean.indexing.testing.","https:\u002F\u002Fgithub.com\u002Fgleanwork\u002Fglean-indexing-sdk\u002Fblob\u002Fmain\u002Fskills\u002Fconnector-testing\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M72T0XKXAG5WGQHPVNB968DS","connector-push","Implement Glean-side push\u002Fupload logic for Glean Indexing SDK connectors. Use when mapping source entities to Glean documents, identities, groups, memberships, and status checks.","https:\u002F\u002Fgithub.com\u002Fgleanwork\u002Fglean-indexing-sdk\u002Fblob\u002Fmain\u002Fskills\u002Fconnector-push\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M72T0ETD7GXZ7TTZ3MFYHBGS","connector-pull","Implement source-side pull logic for Glean Indexing SDK connectors. Use after API exploration when writing data clients that fetch from third-party APIs.","https:\u002F\u002Fgithub.com\u002Fgleanwork\u002Fglean-indexing-sdk\u002Fblob\u002Fmain\u002Fskills\u002Fconnector-pull\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M72T09KTGEXN4BRQ4SK8D8XF","connector-deployment","Plan and operate customer-hosted deployment for Glean Indexing SDK connectors using glean-idx deploy. Use when the user wants deployment artifacts, cloud secrets, Kubernetes CronJobs, logs, status, or teardown for a generated connector.","https:\u002F\u002Fgithub.com\u002Fgleanwork\u002Fglean-indexing-sdk\u002Fblob\u002Fmain\u002Fskills\u002Fconnector-deployment\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M72T071ZHBP6C83HW7S8D51D","connector-builder","Build Glean Indexing SDK connectors from source-system documentation. Use when planning, generating, validating, or evaluating a custom connector built with the Glean Indexing SDK.","https:\u002F\u002Fgithub.com\u002Fgleanwork\u002Fglean-indexing-sdk\u002Fblob\u002Fmain\u002Fskills\u002Fconnector-builder\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M72T03JN19YNA6SEMXDMB45C","connector-auth","Plan source API authentication for Glean Indexing SDK connectors. Use during connector planning and implementation to separate API-exploration credentials from production connector auth.","https:\u002F\u002Fgithub.com\u002Fgleanwork\u002Fglean-indexing-sdk\u002Fblob\u002Fmain\u002Fskills\u002Fconnector-auth\u002FSKILL.md",[],[]]