import { URI } from '../../../util/vs/base/common/uri'; import { type IGitService } from '../../git/common/gitService'; export interface WorkspaceOTelMetadata { readonly headBranchName?: string; readonly headCommitHash?: string; readonly remoteUrl?: string; readonly fileRelativePath?: string; } /** * Synchronously resolve workspace metadata from the active repository. * Uses `activeRepository.get()` which is non-blocking. */ export declare function resolveWorkspaceOTelMetadata(gitService: IGitService, fileUri?: URI): WorkspaceOTelMetadata; /** * Convert workspace metadata to OTel attributes, omitting undefined values. * Emits both the legacy `copilot_chat.repo.*` namespace and the canonical * `github.copilot.git.*` namespace. */ export declare function workspaceMetadataToOTelAttributes(metadata?: WorkspaceOTelMetadata): Record; //# sourceMappingURL=workspaceOTelMetadata.d.ts.map