private async requestConnectionMetadata()

in runtimes/runtimes/auth/auth.ts [200:218]


    private async requestConnectionMetadata() {
        try {
            const connectionMetadata = await this.connection.sendRequest(getConnectionMetadataRequestType)

            this.connectionMetadata = connectionMetadata
            this.connection.console.info('Runtime: Connection metadata updated')
        } catch (error: any) {
            this.connectionMetadata = undefined
            this.connection.console.info(
                `Runtime: Failed to update Connection metadata with error: ${error?.message || 'unknown'}`
            )
            OperationalTelemetryProvider.getTelemetryForScope(TELEMETRY_SCOPES.RUNTIMES).emitEvent({
                errorOrigin: 'caughtError',
                errorType: 'connectionMetadata',
                errorName: error?.name ?? 'unknown',
                errorCode: error?.code ?? '',
            })
        }
    }